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 kesselb committed Jul 4, 2023
1 parent 0195ea4 commit 168acfb
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 @@ -755,7 +755,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 168acfb

Please sign in to comment.