mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-15 01:39:30 +01:00
catch and ignore ValueError of file_gets_contents('')
This commit is contained in:
parent
abb72e0c78
commit
cf211fae87
@ -6960,7 +6960,15 @@ class Mail
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $myUrl[0]!='/' && strlen($basedir) > 1 && !str_ends_with($basedir, '/')) { $basedir .= '/'; }
|
if ( $myUrl[0]!='/' && strlen($basedir) > 1 && !str_ends_with($basedir, '/')) { $basedir .= '/'; }
|
||||||
if ($needTempFile && empty($attachment) && !str_starts_with($myUrl, "http")) $data = file_get_contents($basedir.urldecode($myUrl));
|
if ($needTempFile && empty($attachment) && !str_starts_with($myUrl, "http"))
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$data = file_get_contents($basedir.urldecode($myUrl));
|
||||||
|
}
|
||||||
|
catch (\Throwable $e) {
|
||||||
|
_egw_log_exception($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (str_starts_with($url, 'data:'))
|
if (str_starts_with($url, 'data:'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user