From d50489ec31d687aa5840238d084129fd98abd76b Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 12 Jun 2015 00:15:23 +0300 Subject: [PATCH] fixed file paths --- src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.20.1