rootvector2 commented on code in PR #3624:
URL: https://github.com/apache/cxf/pull/3624#discussion_r4374239692
##########
rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java:
##########
@@ -1908,7 +1908,7 @@ private static void checkAllowedRedirectUri(String
conduitName,
}
String allowedRedirectURI =
(String)message.getContextualProperty(AUTO_REDIRECT_ALLOWED_URI);
- if (allowedRedirectURI != null &&
!newURL.startsWith(allowedRedirectURI)) {
+ if (allowedRedirectURI != null && !isAllowedRedirectUri(newUri,
newURL, allowedRedirectURI)) {
Review Comment:
Sounds good, closing this one. A note that `http.redirect.allowed.uri` is a
raw prefix match, so the value should end with `/`, would cover the case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]