You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2011/11/10 13:41:34 UTC
svn commit: r1200302 -
/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java
Author: kkolinko
Date: Thu Nov 10 12:41:33 2011
New Revision: 1200302
URL: http://svn.apache.org/viewvc?rev=1200302&view=rev
Log:
Add sanity check. This method is absent in trunk.
Modified:
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java
Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java?rev=1200302&r1=1200301&r2=1200302&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java Thu Nov 10 12:41:33 2011
@@ -119,7 +119,7 @@ public final class Parameters {
@Deprecated
public void addParameterValues(String key, String[] newValues) {
- if (key == null) {
+ if (key == null || newValues.length == 0) {
return;
}
ArrayList<String> values = paramHashValues.get(key);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org