mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 01:40:53 -04:00
Merge pull request #41120 from nextcloud/imaginaryInvalidStream
This commit is contained in:
commit
4c8232f04c
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ class Imaginary extends ProviderV2 {
|
|||
|
||||
// Object store
|
||||
$stream = $file->fopen('r');
|
||||
if (!$stream || !is_resource($stream) || feof($stream)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$httpClient = $this->service->newClient();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue