forked from extern/egroupware
limit filesystem depth for managed attachments to gard against infinit recursion
This commit is contained in:
parent
c795f13f81
commit
188865566b
@ -1543,6 +1543,7 @@ class CalDAV extends HTTP_WebDAV_Server
|
|||||||
foreach(Vfs::find(Link::vfs_path($app, $id, '', true), array(
|
foreach(Vfs::find(Link::vfs_path($app, $id, '', true), array(
|
||||||
'type' => 'F',
|
'type' => 'F',
|
||||||
'need_mime' => true,
|
'need_mime' => true,
|
||||||
|
'maxdepth' => 10, // set a limit to not run into an infinit recursion
|
||||||
), true) as $path => $stat)
|
), true) as $path => $stat)
|
||||||
{
|
{
|
||||||
// handle symlinks --> return target size and mime-type
|
// handle symlinks --> return target size and mime-type
|
||||||
|
Loading…
Reference in New Issue
Block a user