提交 53fa8205 编写于 作者: S Sergey Toshin

Receives canonical path in ZipSecurity.isInSubDirectory(...)

上级 ddbcf8bb
......@@ -28,6 +28,7 @@ public class ZipSecurity {
public static boolean isInSubDirectory(File baseDir, File file) {
try {
file = file.getCanonicalFile();
baseDir = baseDir.getCanonicalFile();
}
catch(IOException e) {
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册