Improve static resource path check

This commit is contained in:
Rossen Stoyanchev
2016-06-28 15:39:19 -04:00
parent 1a7c6d3b10
commit 775ffbe10b

View File

@@ -487,7 +487,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
return true;
}
}
if (path.contains("../")) {
if (path.contains("..")) {
path = StringUtils.cleanPath(path);
if (path.contains("../")) {
if (logger.isTraceEnabled()) {