diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/edit.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 3b62901..2c780b6 100644 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -55,7 +55,9 @@ if($_REQUEST['action']) { if(strlen($_REQUEST['file']) < 1) { echo "|No file name specified.|"; } else { + conf_mount_rw(); $ret = file_put_contents($_REQUEST['file'], $_REQUEST['data']); + conf_mount_ro(); if($_REQUEST['file'] == "config.xml") if(file_exists("/tmp/config.cache")) unlink("/tmp/config.cache"); |