mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
limit filesystem depth for managed attachments to gard against infinit recursion
This commit is contained in:
parent
bded1bf17e
commit
047e68ecd4
@ -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