tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves ErrorReportValve.java
Date Thu, 01 Jan 2004 23:53:46 GMT
markt       2004/01/01 15:53:46

  Modified:    catalina/src/share/org/apache/catalina/valves
                        ErrorReportValve.java
  Log:
  - Fix bug 9625.
  - Stack traces are now escaped to ensure correct display.
  
  Revision  Changes    Path
  1.13      +6 -6      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ErrorReportValve.java
  
  Index: ErrorReportValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ErrorReportValve.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ErrorReportValve.java	6 Nov 2003 23:43:18 -0000	1.12
  +++ ErrorReportValve.java	1 Jan 2004 23:53:46 -0000	1.13
  @@ -314,7 +314,7 @@
               sb.append("<p><b>");
               sb.append(sm.getString("errorReportValve.exception"));
               sb.append("</b> <pre>");
  -            sb.append(stackTrace);
  +            sb.append(RequestUtil.filter(stackTrace));
               sb.append("</pre></p>");
   
               while (rootCause != null) {
  @@ -323,7 +323,7 @@
                   sb.append("<p><b>");
                   sb.append(sm.getString("errorReportValve.rootCause"));
                   sb.append("</b> <pre>");
  -                sb.append(stackTrace);
  +                sb.append(RequestUtil.filter(stackTrace));
                   sb.append("</pre></p>");
                   // In case root cause is somehow heavily nested
                   try {
  
  
  

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


Mime
View raw message