Merge pull request #6650 from volzhs/resource-path
Fix error when using 2 or more slashes on resource path
This commit is contained in:
commit
bf89f43927
1 changed files with 5 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue