SEC-1111: Fix for "java.io.CharConversionException: Not an ISO 8859-1 character". Use response.getWriter() instead of printing to ServletOutputStream.

This commit is contained in:
Luke Taylor
2009-04-18 07:35:34 +00:00
parent 13af4b95a2
commit 6b3d0eac40
2 changed files with 23 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ public class DefaultLoginPageGeneratingFilter extends SpringSecurityFilter {
String loginPageHtml = generateLoginPageHtml(request);
response.setContentType("text/html;charset=UTF-8");
response.setContentLength(loginPageHtml.length());
response.getOutputStream().print(loginPageHtml);
response.getWriter().write(loginPageHtml);
return;
}