Skip to content

Commit

Permalink
Merge pull request #21 from cesarhernandezgt/tomcat-7.0.109-TT-patch
Browse files Browse the repository at this point in the history
Prepare for 7.0.109-TT.8 release
  • Loading branch information
cesarhernandezgt authored Jun 14, 2023
2 parents 902657e + fab0295 commit d0fb908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.properties.default
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions java/org/apache/tomcat/util/http/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> values = paramHashValues.get(key);
if (values == null) {
Expand Down

0 comments on commit d0fb908

Please sign in to comment.