From b442f218077cbc60404c7b99c137fded94389d4b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 25 Jan 2006 00:11:32 +0000 Subject: Error out when nothing specified instead of passing "" to passthru() --- usr/local/www/exec_raw.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/local/www') 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); -- cgit v1.1