Skip to content

Commit

Permalink
Merge pull request #39099 from nextcloud/backport/39093/stable27
Browse files Browse the repository at this point in the history
[stable27] Silent `imagecreatefromstring()` errors
  • Loading branch information
blizzz committed Jul 10, 2023
2 parents ff86e8c + ecbeacb commit f5a7d40
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 f5a7d40

Please sign in to comment.