Fix exception in AntPathMatcher for leading *
Issue: SPR-13139
This commit is contained in:
committed by
Rossen Stoyanchev
parent
be4329545a
commit
63f01c851f
@@ -747,7 +747,7 @@ public class AntPathMatcher implements PathMatcher {
|
||||
this.doubleWildcards++;
|
||||
pos += 2;
|
||||
}
|
||||
else if (!this.pattern.substring(pos - 1).equals(".*")) {
|
||||
else if (pos > 0 && !this.pattern.substring(pos - 1).equals(".*")) {
|
||||
this.singleWildcards++;
|
||||
pos++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user