mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-04 09:42:29 +00:00
Fix OptimizeAntPathRequestMatcher
Previously the logic for determining if the pathInfo should be appended was inverted. This correctly concatenates url + pathInfo if url is a non empty String. Fixes: gh-5473
This commit is contained in:
parent
4ccd2f7ebd
commit
f5701b5fe0
@ -175,7 +175,7 @@ public final class AntPathRequestMatcher
|
||||
|
||||
String pathInfo = request.getPathInfo();
|
||||
if (pathInfo != null) {
|
||||
url = StringUtils.hasLength(url) ? pathInfo : url + pathInfo;
|
||||
url = StringUtils.hasLength(url) ? url + pathInfo : pathInfo;
|
||||
}
|
||||
|
||||
return url;
|
||||
|
Loading…
x
Reference in New Issue
Block a user