From 1cb71a130c9495c9d5f6538fb7e7f9df5aedf166 Mon Sep 17 00:00:00 2001 From: AlexanderDCrane <40072887+AlexanderDCrane@users.noreply.github.com> Date: Wed, 13 Jun 2018 01:03:34 -0600 Subject: [PATCH] Update user_edit.php (#3129) --- core/users/user_edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 8b8df245c0..907da051b5 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -675,7 +675,7 @@ if (count($_POST) > 0 && $_POST["persistform"] != "1") { echo " ".$text['label-status']."\n"; echo " \n"; echo " \n"; - $cmd = "'".PROJECT_PATH."/app/calls_active/v_calls_exec.php?cmd=callcenter_config+agent+set+status+".$username."@".$_SESSION['domains'][$domain_uuid]['domain_name']."+'+this.value"; + $cmd = "'".PROJECT_PATH."/app/calls_active/v_calls_exec.php?cmd=callcenter_config+agent+set+status+".escape($username)."@".$_SESSION['domains'][$domain_uuid]['domain_name']."+'+this.value"; echo " "; - echo " "; + echo " "; if (strlen($text['description-api_key']) > 0) { echo "
".$text['description-api_key']."
\n"; }