diff options
author | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 14:13:54 +0100 |
---|---|---|
committer | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 14:13:54 +0100 |
commit | d6b4d25d1da70ddc95f20cb7adad5a7a50a745f0 (patch) | |
tree | 4a417fd00da3befb949479dc3b03f6ddad5e2282 | |
parent | 81a281a140d6ac277971e432b19e36acc05473f7 (diff) | |
parent | 77763fb856720d7cc2a64f1a6955c10efa0f6e3f (diff) | |
download | nextcloud-server-d6b4d25d1da70ddc95f20cb7adad5a7a50a745f0.tar.gz nextcloud-server-d6b4d25d1da70ddc95f20cb7adad5a7a50a745f0.zip |
Merge branch 'master' of https://github.com/hkjolhede/owncloud_core
-rw-r--r-- | lib/files/storage/common.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php index 668cb08d7b1..ce9e7ead6d1 100644 --- a/lib/files/storage/common.php +++ b/lib/files/storage/common.php @@ -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 == '.') { |