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:
Rob Winch 2018-08-21 11:52:55 -05:00 committed by Josh Cummings
parent c408fb7edf
commit 8170e47ff2
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443

View File

@ -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;