Update lib/filestorage/common.php

Small cleanup
This commit is contained in:
hkjolhede 2013-01-27 16:07:21 +01:00
parent b1b2eafa50
commit 77763fb856
1 changed files with 1 additions and 2 deletions

View File

@ -300,9 +300,8 @@ abstract class OC_Filestorage_Common extends OC_Filestorage {
$path = '/' . $path; $path = '/' . $path;
} }
$chunks = explode('/', $path);
$output = array(); $output = array();
foreach ($chunks as $chunk) { foreach (explode('/', $path) as $chunk) {
if ($chunk == '..') { if ($chunk == '..') {
array_pop($output); array_pop($output);
} else if ($chunk == '.') { } else if ($chunk == '.') {