Merge pull request #6650 from volzhs/resource-path

Fix error when using 2 or more slashes on resource path
This commit is contained in:
Rémi Verschelde 2016-10-03 12:00:22 +02:00 committed by GitHub
commit bf89f43927

View file

@ -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<String> dirs = s.split("/",false);
for(int i=0;i<dirs.size();i++) {