Skip to content

Commit

Permalink
support multiple .. in path
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Nov 10, 2019
1 parent b90a9ae commit 0579c10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ else if (!s.toString().endsWith(File.separator))
a = a.substring(File.separator.length());

while (a.startsWith(".."+File.separator)) {
String p = s.toString().substring(0, s.length()-1);
String p = a.toString().substring(0, a.length()-1);
if (!p.contains(File.separator)) {
s = new StringBuilder();
} else {
Expand Down

0 comments on commit 0579c10

Please sign in to comment.