Author: thomas.heute(a)jboss.com
Date: 2009-01-21 06:34:58 -0500 (Wed, 21 Jan 2009)
New Revision: 12582
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
Log:
Transform output using HTML entities
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-01-21
11:34:21 UTC (rev 12581)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-01-21
11:34:58 UTC (rev 12582)
@@ -1,20 +1,20 @@
<%@ page import="java.lang.Throwable" %>
<%@ page import="org.jboss.portal.common.util.Exceptions" %>
+<%@ page import="org.jboss.portal.common.text.EntityEncoder" %>
+
<h2 class="portlet-msg-error"><%=
request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
</h2>
-<div class="portlet-font">Cause: <%=
request.getAttribute("org.jboss.portal.control.CAUSE") %>
+<div class="portlet-font">Cause: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.CAUSE").toString())
%>
</div>
<%
if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
{
%>
-<div class="portlet-font">Message: <%=
request.getAttribute("org.jboss.portal.control.MESSAGE") %>
+<div class="portlet-font">Message: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.MESSAGE").toString())
%>
</div>
<%
}
%>
-<div class="portlet-font">
- StackTrace: <%=
Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE"))
%>
-</div>
\ No newline at end of file
+<div class="portlet-font">See log for stacktrace</div>
\ No newline at end of file
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-01-21
11:34:21 UTC (rev 12581)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-01-21
11:34:58 UTC (rev 12582)
@@ -1,20 +1,19 @@
<%@ page import="java.lang.Throwable" %>
<%@ page import="org.jboss.portal.common.util.Exceptions" %>
+<%@ page import="org.jboss.portal.common.text.EntityEncoder" %>
<h2 class="portlet-msg-error"><%=
request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
</h2>
-<div class="portlet-font">Cause: <%=
request.getAttribute("org.jboss.portal.control.CAUSE") %>
+<div class="portlet-font">Cause: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.CAUSE").toString())
%>
</div>
<%
if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
{
%>
-<div class="portlet-font">Message: <%=
request.getAttribute("org.jboss.portal.control.MESSAGE") %>
+<div class="portlet-font">Message: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.MESSAGE").toString())
%>
</div>
<%
}
%>
-<div class="portlet-font">
- StackTrace: <%=
Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE"))
%>
-</div>
\ No newline at end of file
+<div class="portlet-font">See log for stacktrace</div></div>
\ No newline at end of file
Show replies by date