Merge pull request #29095 from nextcloud/backport/29075/stable20

This commit is contained in:
John Molakvoæ 2021-11-04 09:18:04 +01:00 committed by GitHub
commit 72bd10fab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -621,7 +621,7 @@ class OC_Image implements \OCP\IImage {
default:
// this is mostly file created from encrypted file
$this->resource = imagecreatefromstring(\OC\Files\Filesystem::file_get_contents(\OC\Files\Filesystem::getLocalPath($imagePath)));
$this->resource = imagecreatefromstring(file_get_contents($imagePath));
$iType = IMAGETYPE_PNG;
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
break;