Skip to content

Commit

Permalink
Merge pull request #39100 from nextcloud/backport/39093/stable26
Browse files Browse the repository at this point in the history
[stable26] Silent `imagecreatefromstring()` errors
  • Loading branch information
blizzz authored Jul 10, 2023
2 parents f4f6a95 + 11a6de9 commit 91a4476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/OC_Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ public function loadFromFile($imagePath = false) {
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;
Expand Down

0 comments on commit 91a4476

Please sign in to comment.