Merge branch 'master' of https://github.com/hkjolhede/owncloud_core
This commit is contained in:
commit
d6b4d25d1d
|
@ -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 == '.') {
|
||||
|
|
Loading…
Reference in New Issue