aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
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");