mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Added missing fclose in file_get_contents and file_put_contents
This commit is contained in:
parent
d6ce45fe61
commit
0067a4eac2
1 changed files with 4 additions and 1 deletions
|
|
@ -119,13 +119,16 @@ abstract class Common implements \OC\Files\Storage\Storage {
|
|||
return false;
|
||||
}
|
||||
$data = stream_get_contents($handle);
|
||||
fclose($handle);
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function file_put_contents($path, $data) {
|
||||
$handle = $this->fopen($path, "w");
|
||||
$this->removeCachedFile($path);
|
||||
return fwrite($handle, $data);
|
||||
$count = fwrite($handle, $data);
|
||||
fclose($handle);
|
||||
return $count;
|
||||
}
|
||||
|
||||
public function rename($path1, $path2) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue