Commit d99897b9 authored by Edward Wang's avatar Edward Wang

src: Don't leave an empty string when stripping the trailing slash

parent 9d425f9b
......@@ -63,7 +63,7 @@ public class Util {
public static String stripTrailingSlash(String _s) {
String s = _s;
if(s.endsWith("/"))
if( s.endsWith("/") && s.length() > 1 )
s = s.substring(0,s.length()-1);
return s;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment