Skip to content
Snippets Groups Projects
Unverified Commit eb175584 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #14514 from nextcloud/fix/no_debug_output

Do not just write foobar
parents 79ec7bbc c8d1b294
No related branches found
No related tags found
No related merge requests found
...@@ -169,9 +169,12 @@ class File extends Node implements IFile { ...@@ -169,9 +169,12 @@ class File extends Node implements IFile {
if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) { if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) {
if (!is_resource($data)) { if (!is_resource($data)) {
$data = fopen('php://temp', 'r+'); $tmpData = fopen('php://temp', 'r+');
fwrite($data, 'foobar'); if ($data !== null) {
rewind($data); fwrite($tmpData, $data);
rewind($tmpData);
}
$data = $tmpData;
} }
$isEOF = false; $isEOF = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment