mirror of
https://github.com/nextcloud/server.git
synced 2026-02-23 18:05:02 -05:00
Merge pull request #39101 from nextcloud/backport/39093/stable25
[stable25] Silent `imagecreatefromstring()` errors
This commit is contained in:
commit
6715bbade1
1 changed files with 1 additions and 1 deletions
|
|
@ -755,7 +755,7 @@ class OC_Image implements \OCP\IImage {
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue