]> source.dussan.org Git - nextcloud-server.git/commitdiff
Silent imagecreatefromstring() errors 39100/head
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Fri, 30 Jun 2023 19:58:44 +0000 (21:58 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Sat, 1 Jul 2023 14:43:13 +0000 (14:43 +0000)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/legacy/OC_Image.php

index 74e82e62b168cbb8172583a64f6b1200f53c13f7..aac0c496734002684e66d46384d74732ae55b9b3 100644 (file)
@@ -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;