提交 26974258 编写于 作者: R Rossen Stoyanchev

Improve static resource path check

上级 4c87167c
...@@ -371,7 +371,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator ...@@ -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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册