AntPathMatcher allows newline in URI template variables
Closes gh-23252
This commit is contained in:
@@ -644,7 +644,7 @@ public class AntPathMatcher implements PathMatcher {
|
||||
|
||||
private static final Pattern GLOB_PATTERN = Pattern.compile("\\?|\\*|\\{((?:\\{[^/]+?}|[^/{}]|\\\\[{}])+?)}");
|
||||
|
||||
private static final String DEFAULT_VARIABLE_PATTERN = "(.*)";
|
||||
private static final String DEFAULT_VARIABLE_PATTERN = "((?s).*)";
|
||||
|
||||
private final String rawPattern;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user