Author: thomas.heute(a)jboss.com
Date: 2007-03-19 20:31:30 -0400 (Mon, 19 Mar 2007)
New Revision: 6761
Modified:
trunk/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java
Log:
Convert < to < and > to > on n:out
Modified: trunk/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java
===================================================================
--- trunk/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java 2007-03-20
00:07:16 UTC (rev 6760)
+++ trunk/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java 2007-03-20
00:31:30 UTC (rev 6761)
@@ -123,7 +123,7 @@
if (contextStack.get(i) != null)
{
NamedContext ctx = (NamedContext)contextStack.get(i);
- return ((Context)ctx.getContext()).get(ctxNames[ctxNames.length - 1]);
+ return convert(((Context)ctx.getContext()).get(ctxNames[ctxNames.length - 1]));
}
else
{
@@ -131,4 +131,15 @@
return "";
}
}
+
+ private static String convert(String toto)
+ {
+ if (toto != null)
+ {
+ toto = toto.replace("<", "<");
+ toto = toto.replace(">", ">");
+ }
+ return toto;
+ }
+
}