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:
Brian Clozel
2015-10-08 11:05:51 +02:00
parent 15b88782f7
commit 758ae98af2
2 changed files with 12 additions and 4 deletions

View File

@@ -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;
}