tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r557465 - /tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
Date Thu, 19 Jul 2007 02:37:46 GMT
Author: markt
Date: Wed Jul 18 19:37:45 2007
New Revision: 557465

URL: http://svn.apache.org/viewvc?view=rev&rev=557465
Log:
Filter output on error page.

Modified:
    tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java

Modified: tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
URL: http://svn.apache.org/viewvc/tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java?view=diff&rev=557465&r1=557464&r2=557465
==============================================================================
--- tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
(original)
+++ tomcat/container/branches/tc3.3.x/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
Wed Jul 18 19:37:45 2007
@@ -517,7 +517,7 @@
 
 	if (msg != null){
             buf.append("<br><br>\r\n<b>")
-                .append(msg)
+                .append(HttpMessages.filter(msg))
                 .append("</b><br>\r\n");
         }
 
@@ -636,7 +636,7 @@
 	    // prints nested exceptions too, including SQLExceptions, recursively
 	    String trace = Logger.throwableToString
 		(e, "<b>" + sm.getString("defaulterrorpage.rootcause") + "</b>");
-	    buf.append(trace);
+	    buf.append(HttpMessages.filter(trace));
 	    buf.append("</pre>\r\n");
 	} else {
 	    buf.append("<b>Error:</b> ")
@@ -755,7 +755,7 @@
 
 	if (msg != null){
             buf.append("\r\n<b>")
-                .append(msg)
+                .append(HttpMessages.filter(msg))
                 .append("</b><br>\r\n");
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message