mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Fix path of file_get_contents
Try to fix #28370 and #27441 Avoid pre-pends the `$path` to the user's own storage.
This commit is contained in:
parent
15de74d82e
commit
0506288882
1 changed files with 1 additions and 1 deletions
|
|
@ -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(\OC\Files\Filesystem::getLocalPath($imagePath)));
|
||||
$iType = IMAGETYPE_PNG;
|
||||
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue