Browse Source

Hanlde writestream not closing source

Fixes #14298

If a storage doesn'tclose the write stream then $isEOF is not yet set.
So we have to fallback.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v16.0.0alpha1
Roeland Jago Douma 5 years ago
parent
commit
719b70108d
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apps/dav/lib/Connector/Sabre/File.php

+ 4
- 0
apps/dav/lib/Connector/Sabre/File.php View File

@@ -181,8 +181,12 @@ class File extends Node implements IFile {

$count = $partStorage->writeStream($internalPartPath, $wrappedData);
$result = $count > 0;

if ($result === false) {
$result = $isEOF;
if (is_resource($wrappedData)) {
$result = feof($wrappedData);
}
}

} else {

Loading…
Cancel
Save