diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index d47f0f7530..e7bd3540d4 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1543,6 +1543,7 @@ class CalDAV extends HTTP_WebDAV_Server foreach(Vfs::find(Link::vfs_path($app, $id, '', true), array( 'type' => 'F', 'need_mime' => true, + 'maxdepth' => 10, // set a limit to not run into an infinit recursion ), true) as $path => $stat) { // handle symlinks --> return target size and mime-type