aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-07-01 16:34:01 +0200
committerGitHub <noreply@github.com>2023-07-01 16:34:01 +0200
commit914cb809b407e13914f2dbafe8c2fd686838f228 (patch)
tree4532a8c9abd5306bd52af9f233b8edba6d37aa2a
parent2584786f31818dc98fc36015efcb16c5ccafcb10 (diff)
parent9d70fd3e64b60a316a03fb2b237891380c310c58 (diff)
downloadnextcloud-server-914cb809b407e13914f2dbafe8c2fd686838f228.tar.gz
nextcloud-server-914cb809b407e13914f2dbafe8c2fd686838f228.zip
Merge pull request #39093 from nextcloud/imageCreateFromString
Silent `imagecreatefromstring()` errors
-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;