summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www')
-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