summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-14 23:44:29 +0200
committerJulius Härtl <jus@bitgrid.net>2022-10-27 08:47:32 +0200
commit5e416c529e7b4370d3ae2f191535b768bfca6941 (patch)
tree67dd8cc5f16bbb0e36ee22939470c60a582c55c7
parent71493433b826afd67093c04ce29efc2c12242a2a (diff)
downloadnextcloud-server-5e416c529e7b4370d3ae2f191535b768bfca6941.tar.gz
nextcloud-server-5e416c529e7b4370d3ae2f191535b768bfca6941.zip
Use proper storage method for writing skeleton files
otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--lib/private/legacy/OC_Util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 4778fe33097..429f7ed5d05 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -255,7 +255,7 @@ class OC_Util {
closedir($dir);
return;
}
- stream_copy_to_stream($sourceStream, $child->fopen('w'));
+ $child->putContent($sourceStream);
}
}
}