Skip to content

Commit

Permalink
Silent imagecreatefromstring() errors
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored and backportbot-nextcloud[bot] committed Jul 1, 2023
1 parent adeeb32 commit 11a6de9
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 11a6de9

Please sign in to comment.