From 61a90ed5903c70aaeb05ab135cc1f61de67e3c6a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 25 Jun 2009 14:41:06 -0400 Subject: [PATCH] Only mount rw on $_POST --- usr/local/www/exec.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index 1ce8657916..c6f878800d 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(); +?> \ No newline at end of file