Skip to content

Commit 9fdb902

Browse files
author
drighetto
committed
Debug UT
1 parent 3d0d42f commit 9fdb902

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/eu/righettod/SecurityUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,10 @@ public static boolean isPathSafe(String path) {
11801180
File f = new File(decodedPath);
11811181
String canonicalPath = f.getCanonicalPath();
11821182
String absolutePath = f.getAbsolutePath();
1183+
System.out.printf("IN PATH : %s\n", path);
1184+
System.out.printf("DECODED PATH: %s\n", decodedPath);
1185+
System.out.printf("CANONICAL PATH: %s\n", canonicalPath);
1186+
System.out.printf("ABSOLUTE PATH: %s\n", absolutePath);
11831187
isSafe = canonicalPath.equals(absolutePath);
11841188
}
11851189
} catch (Exception e) {

0 commit comments

Comments
 (0)