We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b2fb36 + c942c73 commit 215ae91Copy full SHA for 215ae91
1 file changed
src/main/java/com/github/jlangch/venice/impl/util/io/LoadPaths.java
@@ -258,7 +258,7 @@ private boolean isFileWithinDirectory(
258
if (dir_.isDirectory()) {
259
final File fl = new File(dir_, file.getPath());
260
if (fl.isFile()) {
261
- if (fl.getCanonicalPath().startsWith(dir_.getCanonicalPath())) {
+ if (fl.getCanonicalFile().toPath().startsWith(dir_.getCanonicalFile().toPath())) {
262
// Prevent accessing files outside the load-path.
263
// E.g.: ../../coffee
264
return true;
0 commit comments