billbarker 01/10/26 18:36:10
Modified: src/share/org/apache/tomcat/modules/mappers
DecodeInterceptor.java
Log:
Change the debug level to have to be positive to display charset selection.
I know how much pain it caused Costin to write this ;), but the average user doesn't
care. This way, the information is off in the default config.
Reported by: Mike [EMAIL PROTECTED]
Revision Changes Path
1.14 +2 -2
jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java
Index: DecodeInterceptor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- DecodeInterceptor.java 2001/10/09 02:35:05 1.13
+++ DecodeInterceptor.java 2001/10/27 01:36:10 1.14
@@ -589,7 +589,7 @@
ServerSession sess=req.getSession( false );
if( sess!=null ) {
charset=(String)sess.getNote( sessionEncodingNote );
- if( debug>-1 && charset!=null )
+ if( debug > 0 && charset!=null )
log("Charset from session " + charset );
}
}
@@ -599,7 +599,7 @@
if( charset != null ) return charset;
charset=ctx.getProperty("charset");
- if( charset!=null )
+ if( debug > 0 && charset!=null )
log( "Default per context " + charset );
// Use per context default
return charset;