mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +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(
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user