summaryrefslogtreecommitdiffstats
path: root/usr/local/www/exec.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-25 14:41:06 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-25 14:41:06 -0400
commit61a90ed5903c70aaeb05ab135cc1f61de67e3c6a (patch)
treebc97daf4abeaae69352fd8492ff4d515a13663f9 /usr/local/www/exec.php
parent7955cde8a5318090af78a6a22becb02d204f6591 (diff)
downloadpfsense-61a90ed5903c70aaeb05ab135cc1f61de67e3c6a.zip
pfsense-61a90ed5903c70aaeb05ab135cc1f61de67e3c6a.tar.gz
Only mount rw on $_POST
Diffstat (limited to 'usr/local/www/exec.php')
-rwxr-xr-xusr/local/www/exec.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php
index 1ce8657..c6f8788 100755
--- a/usr/local/www/exec.php
+++ b/usr/local/www/exec.php
@@ -54,7 +54,8 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
unset($_POST['txtCommand']);
}
-conf_mount_rw();
+if($_POST)
+ conf_mount_rw();
// Function: is Blank
// Returns true or false depending on blankness of argument.
@@ -321,6 +322,7 @@ document.forms[0].txtCommand.focus();
<?php
-conf_mount_ro();
+if($_POST)
+ conf_mount_ro();
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud