diff --git a/app/exec/exec.php b/app/exec/exec.php index 5117faab48..ac5a09b5cf 100644 --- a/app/exec/exec.php +++ b/app/exec/exec.php @@ -53,7 +53,16 @@ //get the html values and set them as variables $handler = ($_REQUEST["handler"] != '') ? trim($_REQUEST["handler"]) : ((permission_exists('exec_switch')) ? 'switch' : null); - $cmd = trim($_POST["cmd"]); + $code = trim($_POST["code"]); + $command = trim($_POST["command"]); + +//check the captcha + $command_authorized = false; + if (strlen($code) > 0) { + if (strtolower($_SESSION['captcha']) == strtolower($code)) { + $command_authorized = true; + } + } //set editor moder switch ($handler) { @@ -75,13 +84,13 @@ ?>