parent
b1b2eafa50
commit
77763fb856
|
@ -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 == '.') {
|
||||||
|
|
Loading…
Reference in New Issue