mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Improve static resource path check
This commit is contained in:
+1
-1
@@ -371,7 +371,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (path.contains("../")) {
|
if (path.contains("..")) {
|
||||||
path = StringUtils.cleanPath(path);
|
path = StringUtils.cleanPath(path);
|
||||||
if (path.contains("../")) {
|
if (path.contains("../")) {
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user