diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-10-15 00:44:29 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-11-09 15:10:39 +0300 |
commit | d485db32bc448df3f98faa587875d2ebf152e638 (patch) | |
tree | 0285a958b1556cb36dc254a972b52e8d1d1dd1ff | |
parent | b5b7a41948b63775a00aee5d4a90c4914896021d (diff) |
Use proper storage method for writing skeleton filesbackport/34834/stable25
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.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index bf9ed6e29ff..88cd6baddc5 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -254,7 +254,7 @@ class OC_Util { closedir($dir); return; } - stream_copy_to_stream($sourceStream, $child->fopen('w')); + $child->putContent($sourceStream); } } } |