From 5e416c529e7b4370d3ae2f191535b768bfca6941 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Fri, 14 Oct 2022 23:44:29 +0200 Subject: Use proper storage method for writing skeleton files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl --- lib/private/legacy/OC_Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- cgit v1.2.3