Commit 53fa8205 authored by Sergey Toshin's avatar Sergey Toshin

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

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment