mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix PathPattern incorrectly matching variable against root path
Issue: SPR-15264
This commit is contained in:
+2
-1
@@ -80,7 +80,8 @@ class CaptureVariablePathElement extends PathElement {
|
||||
}
|
||||
boolean match = false;
|
||||
if (next == null) {
|
||||
match = (nextPos == matchingContext.candidateLength);
|
||||
// Needs to be at least one character #SPR15264
|
||||
match = (nextPos == matchingContext.candidateLength && nextPos > candidateIndex);
|
||||
}
|
||||
else {
|
||||
if (matchingContext.isMatchStartMatching && nextPos == matchingContext.candidateLength) {
|
||||
|
||||
Reference in New Issue
Block a user