From b76e01d0f70f4e5a0fbe49acd394fd83cf73c2fe Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 11 Jul 2019 00:02:06 -0600 Subject: [PATCH] Update exec.php --- app/basic_operator_panel/exec.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/basic_operator_panel/exec.php b/app/basic_operator_panel/exec.php index 84ea993f37..83c791d131 100644 --- a/app/basic_operator_panel/exec.php +++ b/app/basic_operator_panel/exec.php @@ -50,11 +50,11 @@ // } //http get variables set to php variables - if (count($_GET)>0) { - $switch_cmd = trim(check_str($_GET["cmd"])); - $action = trim(check_str($_GET["action"])); - $data = trim(check_str($_GET["data"])); - $direction = trim(check_str($_GET["direction"])); + if (count($_GET) > 0) { + $switch_cmd = trim($_GET["cmd"]); + $action = trim($_GET["action"]); + $data = trim($_GET["data"]); + $direction = trim($_GET["direction"]); $username = $_SESSION['username']; } @@ -136,7 +136,6 @@ if (count($_GET) >0) { echo 'access denied'; return; } - /* //set the status so they are compatible with mod_callcenter