Sfoglia il codice sorgente

Use RequestPath

Fixes gh-4389
Rob Winch 8 anni fa
parent
commit
6db418f47b

+ 1 - 1
webflux/src/main/java/org/springframework/security/web/server/util/matcher/PathMatcherServerWebExchangeMatcher.java

@@ -56,7 +56,7 @@ public final class PathMatcherServerWebExchangeMatcher implements ServerWebExcha
 		if(this.method != null && !this.method.equals(request.getMethod())) {
 			return MatchResult.notMatch();
 		}
-		String path = request.getPathWithinApplication();
+		String path = request.getPath().pathWithinApplication().value();
 		boolean match = pathMatcher.match(pattern, path);
 		if(!match) {
 			return MatchResult.notMatch();