diff --git a/build.properties.default b/build.properties.default index 41afbee206ec..659dce584c74 100644 --- a/build.properties.default +++ b/build.properties.default @@ -27,7 +27,7 @@ version.major=7 version.minor=0 version.build=109 version.patch=0 -version.suffix=-TT.7 +version.suffix=-TT.8 # ----- Source control flags ----- git.branch=7.0.x diff --git a/java/org/apache/tomcat/util/http/Parameters.java b/java/org/apache/tomcat/util/http/Parameters.java index 6e08b773d2ea..dc69e457bf06 100644 --- a/java/org/apache/tomcat/util/http/Parameters.java +++ b/java/org/apache/tomcat/util/http/Parameters.java @@ -218,14 +218,14 @@ public void addParameter( String key, String value ) return; } - parameterCount ++; - if (limit > -1 && parameterCount > limit) { + if (limit > -1 && parameterCount >= limit) { // Processing this parameter will push us over the limit. ISE is // what Request.parseParts() uses for requests that are too big setParseFailedReason(FailReason.TOO_MANY_PARAMETERS); throw new IllegalStateException(sm.getString( "parameters.maxCountFail", Integer.valueOf(limit))); } + parameterCount++; ArrayList values = paramHashValues.get(key); if (values == null) {