diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-25 00:11:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-25 00:11:32 +0000 |
commit | b442f218077cbc60404c7b99c137fded94389d4b (patch) | |
tree | 8621e8d0b9f7a185fc8b95d9e72360f2a73ef9ef /usr/local | |
parent | c1f5a46b862d66c3de0aa4f615335f43ceaacd36 (diff) | |
download | pfsense-b442f218077cbc60404c7b99c137fded94389d4b.zip pfsense-b442f218077cbc60404c7b99c137fded94389d4b.tar.gz |
Error out when nothing specified instead of passing "" to passthru()
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/exec_raw.php | 4 |
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); |