diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-06-30 21:58:44 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-07-01 14:38:30 +0000 |
commit | ecbeacbdf54cb814c99186621f76ec7df7e92cfb (patch) | |
tree | f205b8e5473224837b8e49bcfbd8e5e3044385fd /lib | |
parent | eb537ad6649f65b9116e6ab4c55514a26411fbb6 (diff) | |
download | nextcloud-server-ecbeacbdf54cb814c99186621f76ec7df7e92cfb.tar.gz nextcloud-server-ecbeacbdf54cb814c99186621f76ec7df7e92cfb.zip |
Silent imagecreatefromstring() errors
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib')
-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 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; |