mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-07-29 13:00:34 +02:00
fix: prevent double write to file (#409)
This commit is contained in:
@@ -434,7 +434,6 @@ if (isset($_POST['ajax']) && !FM_READONLY) {
|
|||||||
|
|
||||||
$writedata = $_POST['content'];
|
$writedata = $_POST['content'];
|
||||||
$fd = fopen($file_path, "w");
|
$fd = fopen($file_path, "w");
|
||||||
@fwrite($fd, $writedata);
|
|
||||||
$write_results = @fwrite($fd, $writedata);
|
$write_results = @fwrite($fd, $writedata);
|
||||||
fclose($fd);
|
fclose($fd);
|
||||||
if ($write_results === false){
|
if ($write_results === false){
|
||||||
|
Reference in New Issue
Block a user