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…
Reference in New Issue