mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Sanitize duplicate slashes in request path
This commit removes duplicate slashes in the resolved lookup path when calling `UrlPathHelper.getLookupPathForRequest`. This is especially necessary when the path is cleaned from semicolon content and leaves duplicate slashes in the request path. Issue: SPR-13455
This commit is contained in:
@@ -421,6 +421,7 @@ public class UrlPathHelper {
|
||||
private String decodeAndCleanUriString(HttpServletRequest request, String uri) {
|
||||
uri = removeSemicolonContent(uri);
|
||||
uri = decodeRequestString(request, uri);
|
||||
uri = getSanitizedPath(uri);
|
||||
return uri;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user