diff options
author | jim-p <jim@pingle.org> | 2010-01-03 12:49:53 -0500 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-01-03 12:49:53 -0500 |
commit | 5a557f44a3071b8eca9cd8bad9250fb624e8fdf9 (patch) | |
tree | 604de8ecb53db2f9f9cba3088134688ea6f0dba1 /usr | |
parent | e665b8ae8254547d57624aa6b604960e682d0e82 (diff) | |
download | pfsense-5a557f44a3071b8eca9cd8bad9250fb624e8fdf9.zip pfsense-5a557f44a3071b8eca9cd8bad9250fb624e8fdf9.tar.gz |
Fix file editing on NanoBSD
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"); |