Skip to content

Commit 72bd10f

Browse files
authored
Merge pull request #29095 from nextcloud/backport/29075/stable20
2 parents 31f30d5 + e6a646c commit 72bd10f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/legacy/OC_Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public function loadFromFile($imagePath = false) {
621621
default:
622622

623623
// this is mostly file created from encrypted file
624-
$this->resource = imagecreatefromstring(\OC\Files\Filesystem::file_get_contents(\OC\Files\Filesystem::getLocalPath($imagePath)));
624+
$this->resource = imagecreatefromstring(file_get_contents($imagePath));
625625
$iType = IMAGETYPE_PNG;
626626
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
627627
break;

0 commit comments

Comments
 (0)