summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-08-17 13:03:45 +0200
committerGitHub <noreply@github.com>2021-08-17 13:03:45 +0200
commita3c69b831043593d32aa8256384e10d03bfeab76 (patch)
tree5915deeffb4e3f4b75406ffbc07549ee75f23894 /lib
parent0edfb24f143e666cf5a716e97bad2a82e67cc66b (diff)
downloadnextcloud-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.php2
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;