summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-25 00:11:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-25 00:11:32 +0000
commitb442f218077cbc60404c7b99c137fded94389d4b (patch)
tree8621e8d0b9f7a185fc8b95d9e72360f2a73ef9ef /usr/local
parentc1f5a46b862d66c3de0aa4f615335f43ceaacd36 (diff)
downloadpfsense-b442f218077cbc60404c7b99c137fded94389d4b.zip
pfsense-b442f218077cbc60404c7b99c137fded94389d4b.tar.gz
Error out when nothing specified instead of passing "" to passthru()
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/exec_raw.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/exec_raw.php b/usr/local/www/exec_raw.php
index f828596..7c45d95 100755
--- a/usr/local/www/exec_raw.php
+++ b/usr/local/www/exec_raw.php
@@ -33,6 +33,10 @@ header("Content-Type: text/plain");
include("guiconfig.inc");
putenv("PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin");
+if($_GET['cmd'] == "") {
+ echo "Nothing specified. Cannot continue.";
+ exit;
+}
passthru($_GET['cmd']);
exit(0);
OpenPOWER on IntegriCloud