This commit is contained in:
Henrik Kjölhede 2013-02-09 14:13:54 +01:00
commit d6b4d25d1d
1 changed files with 1 additions and 2 deletions

View File

@ -289,9 +289,8 @@ abstract class Common implements \OC\Files\Storage\Storage {
$path = '/' . $path;
}
$chunks = explode('/', $path);
$output = array();
foreach ($chunks as $chunk) {
foreach (explode('/', $path) as $chunk) {
if ($chunk == '..') {
array_pop($output);
} else if ($chunk == '.') {