From: Svjatoslav Agejenko Date: Thu, 11 Jun 2015 21:15:23 +0000 (+0300) Subject: fixed file paths X-Git-Tag: meviz-1.0~21 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=d50489ec31d687aa5840238d084129fd98abd76b;p=meviz.git fixed file paths --- diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java index d193dba..5cccbc3 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java @@ -129,6 +129,9 @@ public class Utils { } public static String urlEncode(String string) { + if (string.startsWith("./")) + string = string.substring(2); + try { return URLEncoder.encode(string, UTF_8).replace("+", "%20"); } catch (UnsupportedEncodingException e) {