mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
Merge pull request #47866 from nextcloud/backport/47858/stable28
This commit is contained in:
commit
c0eff12bff
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,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