tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1200316 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
Date Thu, 10 Nov 2011 13:07:13 GMT
Author: kkolinko
Date: Thu Nov 10 13:07:12 2011
New Revision: 1200316

URL: http://svn.apache.org/viewvc?rev=1200316&view=rev
Log:
Do not log invalid parameter value unless debug logging is enabled

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java?rev=1200316&r1=1200315&r2=1200316&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java Thu Nov 10 13:07:12 2011
@@ -297,9 +297,8 @@ public final class Parameters {
 
             if (nameEnd <= nameStart ) {
                 if (log.isInfoEnabled()) {
-                    String extract;
-                    if (valueEnd >= nameStart) {
-                        extract = new String(bytes, nameStart,
+                    if (valueEnd >= nameStart && log.isDebugEnabled()) {
+                        String extract = new String(bytes, nameStart,
                                 valueEnd - nameStart, DEFAULT_CHARSET);
                         log.info(sm.getString("parameters.invalidChunk",
                                 Integer.valueOf(nameStart),



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


Mime
View raw message