fixed file paths
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 11 Jun 2015 21:15:23 +0000 (00:15 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 11 Jun 2015 21:15:23 +0000 (00:15 +0300)
src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java

index d193dba..5cccbc3 100755 (executable)
@@ -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) {