SEC-1636: Add optimizations for simple pattern cases in AntPathRequestMatcher. "/**" and "**" are treated as universal matches and a trailing "/**" is now optimized using a substring match.
This commit is contained in:
@@ -35,7 +35,7 @@ public enum MatcherType {
|
||||
}
|
||||
|
||||
public BeanDefinition createMatcher(String path, String method) {
|
||||
if ("/**".equals(path) && method == null) {
|
||||
if (("/**".equals(path) || "**".equals(path)) && method == null) {
|
||||
return new RootBeanDefinition(AnyRequestMatcher.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user