aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-06 10:41:49 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-06 10:41:49 +0200
commit6e2358c3a6b1417002b74275f1c34d738f35f1ba (patch)
treefd4a4a525ef2931f07daf3ffde65dae5669f8692 /lib/private
parentff651a3e0d764e72ec3146c0163c80b3a872a05a (diff)
downloadnextcloud-server-6e2358c3a6b1417002b74275f1c34d738f35f1ba.tar.gz
nextcloud-server-6e2358c3a6b1417002b74275f1c34d738f35f1ba.zip
Added hacky fix for long path cleanup routine
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index a054fc485a4..3e2c1db79da 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -406,6 +406,8 @@ class OC_Helper {
static function rmdirr($dir) {
if (is_dir($dir)) {
$files = scandir($dir);
+ // FIXME: use flat array instead of recursion to avoid
+ // too many levels
foreach ($files as $file) {
if ($file !== '' && $file !== "." && $file !== "..") {
self::rmdirr("$dir/$file");