mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2026-03-14 20:55:50 +01:00
fix: prevent double write to file (#409)
This commit is contained in:
parent
a6a28a6356
commit
c8fff90634
1 changed files with 0 additions and 1 deletions
|
|
@ -434,7 +434,6 @@ if (isset($_POST['ajax']) && !FM_READONLY) {
|
|||
|
||||
$writedata = $_POST['content'];
|
||||
$fd = fopen($file_path, "w");
|
||||
@fwrite($fd, $writedata);
|
||||
$write_results = @fwrite($fd, $writedata);
|
||||
fclose($fd);
|
||||
if ($write_results === false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue