fixed file paths
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / Utils.java
index 4455992..5cccbc3 100755 (executable)
@@ -129,11 +129,13 @@ public class Utils {
        }
 
        public static String urlEncode(String string) {
+               if (string.startsWith("./"))
+                       string = string.substring(2);
+
                try {
-                       return URLEncoder.encode(string, UTF_8);
+                       return URLEncoder.encode(string, UTF_8).replace("+", "%20");
                } catch (UnsupportedEncodingException e) {
                        throw new RuntimeException(e);
                }
        }
-
 }