summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhkjolhede <hkjolhede@gmail.com>2013-01-27 16:07:21 +0100
committerhkjolhede <hkjolhede@gmail.com>2013-01-27 16:07:21 +0100
commit77763fb856720d7cc2a64f1a6955c10efa0f6e3f (patch)
treee0dc66d9706d6d15b8625ca52bff8088f201efc8
parentb1b2eafa50db54b2613cf2bc52bfab2015d67b2f (diff)
downloadnextcloud-server-77763fb856720d7cc2a64f1a6955c10efa0f6e3f.tar.gz
nextcloud-server-77763fb856720d7cc2a64f1a6955c10efa0f6e3f.zip
Update lib/filestorage/common.php
Small cleanup
-rw-r--r--lib/filestorage/common.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php
index 7a9e8b8944e..d88e5221ce4 100644
--- a/lib/filestorage/common.php
+++ b/lib/filestorage/common.php
@@ -300,9 +300,8 @@ abstract class OC_Filestorage_Common extends OC_Filestorage {
$path = '/' . $path;
}
- $chunks = explode('/', $path);
$output = array();
- foreach ($chunks as $chunk) {
+ foreach (explode('/', $path) as $chunk) {
if ($chunk == '..') {
array_pop($output);
} else if ($chunk == '.') {