Skip to content

Commit

Permalink
Merge pull request #25 from cesarhernandezgt/tomcat-7.0.104-TT-patch
Browse files Browse the repository at this point in the history
Prepare release for 7.0.104-SP.10
  • Loading branch information
cesarhernandezgt authored Sep 6, 2023
2 parents 6fbf954 + 2052b77 commit 30e66bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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=104
version.patch=0
version.suffix=-SP.9
version.suffix=-SP.10

# ----- Source control flags -----
git.branch=7.0.x
Expand Down
6 changes: 6 additions & 0 deletions java/org/apache/catalina/authenticator/FormAuthenticator.java
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,12 @@ protected String savedRequestURL(Session session) {
sb.append('?');
sb.append(saved.getQueryString());
}

// Avoid protocol relative redirects
while (sb.length() > 1 && sb.charAt(1) == '/') {
sb.deleteCharAt(0);
}

return sb.toString();
}
}
3 changes: 3 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
interrupting the thread first. Based on a pull request by Govinda
Sakhare. (markt)
</add>
<fix>
Avoid protocol relative redirects in FORM authentication. (markt)
</fix>
<fix>
<bug>64226</bug>: Reset timezone after parsing a date since the date
format is reused. Test case submitted by Gary Thomas. (remm)
Expand Down

0 comments on commit 30e66bb

Please sign in to comment.