diff --git a/core/ustring.cpp b/core/ustring.cpp index 0d887210c3..a749ce31fc 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -3073,6 +3073,11 @@ String String::simplify_path() const { } s =s.replace("\\","/"); + while(true){ // in case of using 2 or more slash + String compare = s.replace("//","/"); + if (s==compare) break; + else s=compare; + } Vector dirs = s.split("/",false); for(int i=0;i