luehe 2004/01/20 11:38:38 Modified: catalina/src/share/org/apache/catalina Response.java Log: Fix for Bugtraq 4655010: Method sendError() of class HttpServletResponse does not send multi byte data Use response encoding when generating error report, so that the following code works as expected: response.setCharacterEncoding(<charset>); response.sendError(<errorCode>, <message>); Revision Changes Path 1.3 +7 -5 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Response.java Index: Response.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Response.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Response.java 2 Sep 2003 21:22:05 -0000 1.2 +++ Response.java 20 Jan 2004 19:38:38 -0000 1.3 @@ -264,8 +264,10 @@ * unexpected exception thrown during the servlet processing * (and only in that case), null will be returned if the response stream * has already been used. + * + * @exception IOException if an input/output error occurs */ - public PrintWriter getReporter(); + public PrintWriter getReporter() throws IOException; /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]