aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-06-30 21:58:44 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-07-01 14:38:30 +0000
commitecbeacbdf54cb814c99186621f76ec7df7e92cfb (patch)
treef205b8e5473224837b8e49bcfbd8e5e3044385fd /lib
parenteb537ad6649f65b9116e6ab4c55514a26411fbb6 (diff)
downloadnextcloud-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.php2
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;