Skip to content

Commit

Permalink
Merge pull request #14514 from nextcloud/fix/no_debug_output
Browse files Browse the repository at this point in the history
Do not just write foobar
  • Loading branch information
rullzer committed Mar 4, 2019
2 parents 79ec7bb + c8d1b29 commit eb17558
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/dav/lib/Connector/Sabre/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,12 @@ public function put($data) {
if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) {

if (!is_resource($data)) {
$data = fopen('php://temp', 'r+');
fwrite($data, 'foobar');
rewind($data);
$tmpData = fopen('php://temp', 'r+');
if ($data !== null) {
fwrite($tmpData, $data);
rewind($tmpData);
}
$data = $tmpData;
}

$isEOF = false;
Expand Down

0 comments on commit eb17558

Please sign in to comment.