Improve static resource path check
This commit is contained in:
@@ -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