Merge branch 'master' of http://gitlab.edu.yar.ru/composer/PHP_Library into dev
This commit is contained in:
commit
97fefd71ca
1 changed files with 3 additions and 1 deletions
|
|
@ -144,7 +144,9 @@ class Path
|
||||||
case "": break;
|
case "": break;
|
||||||
case ".": break;
|
case ".": break;
|
||||||
case "..":
|
case "..":
|
||||||
if (count($result) > 0) { array_pop($result); break; }
|
if (count($result) > 0 && $result[count($result) - 1] != '..') {
|
||||||
|
array_pop($result); break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
array_push($result, $n);
|
array_push($result, $n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue