diff options
author | acsfer <carlos@reendex.com> | 2021-08-17 13:03:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 13:03:45 +0200 |
commit | a3c69b831043593d32aa8256384e10d03bfeab76 (patch) | |
tree | 5915deeffb4e3f4b75406ffbc07549ee75f23894 /lib | |
parent | 0edfb24f143e666cf5a716e97bad2a82e67cc66b (diff) | |
download | nextcloud-server-a3c69b831043593d32aa8256384e10d03bfeab76.tar.gz nextcloud-server-a3c69b831043593d32aa8256384e10d03bfeab76.zip |
Fix path of `file_get_contents`
Try to fix #28370 and #27441
Avoid pre-pends the `$path` to the user's own storage.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 59d51773528..900be3c63af 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -641,7 +641,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; |