mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #47868 from nextcloud/backport/47858/stable30
This commit is contained in:
commit
f71f690398
1 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,9 @@ abstract class ProviderV2 implements IProviderV2 {
|
|||
$absPath = \OC::$server->getTempManager()->getTemporaryFile();
|
||||
|
||||
$content = $file->fopen('r');
|
||||
if ($content === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($maxSize) {
|
||||
$content = stream_get_contents($content, $maxSize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue