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
parent 4ccd2f7ebd
commit f5701b5fe0
1 changed files with 1 additions and 1 deletions

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;