Skip to content

Commit

Permalink
Merge pull request #39093 from nextcloud/imageCreateFromString
Browse files Browse the repository at this point in the history
Silent `imagecreatefromstring()` errors
  • Loading branch information
solracsf authored Jul 1, 2023
2 parents 2584786 + 9d70fd3 commit 914cb80
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 914cb80

Please sign in to comment.