We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0d42f commit 9fdb902Copy full SHA for 9fdb902
src/main/java/eu/righettod/SecurityUtils.java
@@ -1180,6 +1180,10 @@ public static boolean isPathSafe(String path) {
1180
File f = new File(decodedPath);
1181
String canonicalPath = f.getCanonicalPath();
1182
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);
1187
isSafe = canonicalPath.equals(absolutePath);
1188
}
1189
} catch (Exception e) {
0 commit comments