Skip to content

Commit

Permalink
Merge pull request #29075 from nextcloud/bp-28473
Browse files Browse the repository at this point in the history
[stable21] Fix path of file_get_contents
  • Loading branch information
kesselb authored Oct 6, 2021
2 parents edad252 + cd7eb98 commit ee8edd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/OC_Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public function loadFromFile($imagePath = false) {
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;
Expand Down

0 comments on commit ee8edd3

Please sign in to comment.