We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b815acc commit 990a9c7Copy full SHA for 990a9c7
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
@@ -618,10 +618,11 @@ private static String removeSemicolonContentInternal(String requestUri) {
618
}
619
StringBuilder sb = new StringBuilder(requestUri);
620
while (semicolonIndex != -1) {
621
- int slashIndex = requestUri.indexOf('/', semicolonIndex);
622
- if (slashIndex >= 0) {
623
- sb.delete(semicolonIndex, slashIndex);
+ int slashIndex = requestUri.indexOf('/', semicolonIndex + 1);
+ if (slashIndex == -1) {
+ slashIndex = sb.length();
624
625
+ sb.delete(semicolonIndex, slashIndex);
626
semicolonIndex = sb.indexOf(";", semicolonIndex);
627
628
return sb.toString();
0 commit comments