Merge pull request #29073 from nextcloud/backport/28473/stable22

[stable22] Fix path of `file_get_contents`
This commit is contained in:
Daniel 2021-10-04 20:53:59 +02:00 committed by GitHub
commit 62ba113ac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -649,7 +649,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;