From 0866f49f4e2ac6f0400502f5e6ca9a13dd8c7db9 Mon Sep 17 00:00:00 2001 From: volzhs Date: Fri, 30 Sep 2016 03:11:45 +0900 Subject: [PATCH] Fix error when using 2 or more slashes on resource path --- core/ustring.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/ustring.cpp b/core/ustring.cpp index 0d887210c3b..a749ce31fc1 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