Skip to content

Commit

Permalink
Merge pull request #24 from cesarhernandezgt/tomcat-7.0.109-TT-patch
Browse files Browse the repository at this point in the history
Prepare release for 7.0.109-TT.9
  • Loading branch information
cesarhernandezgt authored Sep 6, 2023
2 parents d0fb908 + 6a7a5d0 commit 2e3ca67
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=109
version.patch=0
version.suffix=-TT.8
version.suffix=-TT.9

# ----- 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 @@ -142,6 +142,9 @@
<code>RemoteIpFilter</code> determines that this request was submitted
via a secure channel. (lihan)
</fix>
<fix>
Avoid protocol relative redirects in FORM authentication. (markt)
</fix>
</changelog>
</subsection>
<subsection name="Web applications">
Expand Down

0 comments on commit 2e3ca67

Please sign in to comment.