mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #39099 from nextcloud/backport/39093/stable27
[stable27] Silent `imagecreatefromstring()` errors
This commit is contained in:
commit
f5a7d40621
1 changed files with 1 additions and 1 deletions
|
|
@ -758,7 +758,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