diff options
author | Ermal <eri@pfsense.org> | 2011-08-19 17:42:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-19 17:42:00 +0000 |
commit | d5f25de65a5d42697a523c94120d9a166d716387 (patch) | |
tree | 1f9966c8212a806c026cfc00f32e6c8e8a408390 /usr/local | |
parent | 8420f4fe87161e78400380c7b24bdfb10fb9bee1 (diff) | |
download | pfsense-d5f25de65a5d42697a523c94120d9a166d716387.zip pfsense-d5f25de65a5d42697a523c94120d9a166d716387.tar.gz |
Put rw/ro calls on pkg_edit.php on POST to avoid packages having to do these calls.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 3eb80e4..1fd8b3a 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -115,6 +115,8 @@ if($pkg['custom_php_command_before_form'] <> "") eval($pkg['custom_php_command_before_form']); if ($_POST) { + conf_mount_rw(); + if($_POST['act'] == "del") { if($pkg['custom_delete_php_command']) { if($pkg['custom_php_command_before_form'] <> "") @@ -246,10 +248,13 @@ if ($_POST) { } elseif(!$pkg['preoutput']) { pfSenseHeader("pkg.php?xml=" . $xml); } + conf_mount_ro(); exit; } else { $get_from_post = true; } + + conf_mount_ro(); } if($pkg['title'] <> "") { |