ASF Bugzilla – Attachment 28406 Details for
Bug 52677
embedded SetCharacterEncodingFilter in org.apache.catalina.filters is not usable as it does not implement javax.servlet.Filter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for 52677
tomcat5.5.x_52677.patch (text/plain), 1.11 KB, created by
xiaming
on 2012-02-29 14:42:52 UTC
(
hide
)
Description:
fix for 52677
Filename:
MIME Type:
Creator:
xiaming
Created:
2012-02-29 14:42:52 UTC
Size:
1.11 KB
patch
obsolete
>Index: container/catalina/src/share/org/apache/catalina/filters/SetCharacterEncodingFilter.java >=================================================================== >--- container/catalina/src/share/org/apache/catalina/filters/SetCharacterEncodingFilter.java (revision 1245342) >+++ container/catalina/src/share/org/apache/catalina/filters/SetCharacterEncodingFilter.java (working copy) >@@ -24,6 +24,7 @@ > import javax.servlet.ServletException; > import javax.servlet.ServletRequest; > import javax.servlet.ServletResponse; >+import javax.servlet.Filter; > > import org.apache.commons.logging.Log; > import org.apache.commons.logging.LogFactory; >@@ -55,7 +56,7 @@ > * and <code>User-Agent</code> headers, or a value stashed in the current > * user's session.</p> > */ >-public class SetCharacterEncodingFilter { >+public class SetCharacterEncodingFilter implements Filter { > > private static final Log log = > LogFactory.getLog(SetCharacterEncodingFilter.class); >@@ -151,4 +152,9 @@ > protected String selectEncoding(ServletRequest request) { > return this.encoding; > } >+ >+ public void destroy() { >+ // NOOP >+ >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52677
: 28406