From 11a6de90b8ac7469cfa2a32345d7372fb4e204f2 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Fri, 30 Jun 2023 21:58:44 +0200 Subject: [PATCH] Silent imagecreatefromstring() errors Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/legacy/OC_Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5