mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
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(
|
||||
'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