mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Refine use of substring operations
Closes gh-25445
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ final class PatternMappingFilterProxy implements Filter {
|
||||
private void addUrlPattern(String urlPattern) {
|
||||
Assert.notNull(urlPattern, "Found null URL Pattern");
|
||||
if (urlPattern.startsWith(EXTENSION_MAPPING_PATTERN)) {
|
||||
this.endsWithMatches.add(urlPattern.substring(1, urlPattern.length()));
|
||||
this.endsWithMatches.add(urlPattern.substring(1));
|
||||
}
|
||||
else if (urlPattern.equals(PATH_MAPPING_PATTERN)) {
|
||||
this.startsWithMatches.add("");
|
||||
|
||||
Reference in New Issue
Block a user