From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Fri, 30 Jun 2023 19:58:44 +0000 (+0200) Subject: Silent imagecreatefromstring() errors X-Git-Tag: v26.0.4rc1~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F39100%2Fhead;p=nextcloud-server.git Silent imagecreatefromstring() errors Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 74e82e62b16..aac0c496734 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -758,7 +758,7 @@ class OC_Image implements \OCP\IImage { if (!$this->checkImageDataSize($data)) { return false; } - $this->resource = imagecreatefromstring($data); + $this->resource = @imagecreatefromstring($data); $iType = IMAGETYPE_PNG; $this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']); break;