Skip to content

Commit 6715bba

Browse files
authored
Merge pull request #39101 from nextcloud/backport/39093/stable25
[stable25] Silent `imagecreatefromstring()` errors
2 parents 2febf7e + 168acfb commit 6715bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/legacy/OC_Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ public function loadFromFile($imagePath = false) {
755755
if (!$this->checkImageDataSize($data)) {
756756
return false;
757757
}
758-
$this->resource = imagecreatefromstring($data);
758+
$this->resource = @imagecreatefromstring($data);
759759
$iType = IMAGETYPE_PNG;
760760
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
761761
break;

0 commit comments

Comments
 (0)