diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-06-30 21:58:44 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-07-04 10:33:17 +0200 |
commit | 168acfbc8a80a443f23a01200aec840ff6655f35 (patch) | |
tree | da357a93d02c218abfe9809c733f3e2d15476602 | |
parent | 0195ea4c203cc0aa2e84916f785d5636b5b2e56c (diff) | |
download | nextcloud-server-168acfbc8a80a443f23a01200aec840ff6655f35.tar.gz nextcloud-server-168acfbc8a80a443f23a01200aec840ff6655f35.zip |
Silent imagecreatefromstring() errors
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index bade2a1af37..e9d0dbddef2 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -755,7 +755,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; |