diff --git a/source/de/anomic/net/URL.java b/source/de/anomic/net/URL.java index d20ca0ccf..019eae042 100644 --- a/source/de/anomic/net/URL.java +++ b/source/de/anomic/net/URL.java @@ -161,7 +161,7 @@ public class URL { } // resolve '..' - private String resolveBackpath(String path) /* throws MalformedURLException */ { + String resolveBackpath(String path) /* throws MalformedURLException */ { /* original version by [MC] int p; while ((p = path.indexOf("/..")) >= 0) { @@ -174,7 +174,7 @@ public class URL { /* by [MT] */ if (path.length() == 0 || path.charAt(0) != '/') { path = "/" + path; } - Pattern pathPattern = Pattern.compile("(/[^/\\.]+/)[.]{2}(?=/)|/\\.(?=/)|/(?=/)"); + Pattern pathPattern = Pattern.compile("(/[^/]+(? " + resolvedURL); + + } + } + +}