From 741bbf1ce67c832b65dfba5cf26fe1ca5262af27 Mon Sep 17 00:00:00 2001 From: AlexanderDCrane <40072887+AlexanderDCrane@users.noreply.github.com> Date: Sat, 9 Jun 2018 11:02:45 -0600 Subject: [PATCH] Escape user data on call_center_queue_edit.php (#3095) --- app/call_centers/call_center_queue_edit.php | 46 ++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index befeda4170..04187476f3 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -224,11 +224,11 @@ $queue_timeout_data = implode($action_array); //build the xml dialplan - $dialplan_xml = "\n"; + $dialplan_xml = "\n"; $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; - $dialplan_xml .= " \n"; + $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; if (strlen($queue_cid_prefix) > 0) { @@ -463,12 +463,12 @@ if ($action == "update") { echo "    "; if (permission_exists('call_center_wallboard')) { - echo " \n"; + echo " \n"; } - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo "    "; } echo " \n"; @@ -483,7 +483,7 @@ echo " ".$text['label-queue_name']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-queue_name']."\n"; echo "\n"; @@ -494,7 +494,7 @@ echo " ".$text['label-extension']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-extension']."\n"; echo "\n"; @@ -619,7 +619,7 @@ echo " \n"; echo " "; if (permission_exists('call_center_tier_delete')) { - echo " $v_link_label_delete"; + echo " $v_link_label_delete"; } echo " \n"; echo " \n"; @@ -703,7 +703,7 @@ echo " ".$text['label-max_wait_time']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-max_wait_time']."\n"; echo "\n"; @@ -714,7 +714,7 @@ echo " ".$text['label-max_wait_time_with_no_agent']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-max_wait_time_with_no_agent']."\n"; echo "\n"; @@ -725,7 +725,7 @@ echo " ".$text['label-max_wait_time_with_no_agent_time_reached']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-max_wait_time_with_no_agent_time_reached']."\n"; echo "\n"; @@ -736,7 +736,7 @@ echo " ".$text['label-timeout_action']."\n"; echo "\n"; echo "\n"; - echo $destination->select('dialplan', 'queue_timeout_action', $queue_timeout_action); + echo $destination->select('dialplan', 'queue_timeout_action', escape($queue_timeout_action)); echo "
\n"; echo $text['description-timeout_action']."\n"; echo "\n"; @@ -771,7 +771,7 @@ echo " ".$text['label-tier_rule_wait_second']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-tier_rule_wait_second']."\n"; echo "\n"; @@ -830,7 +830,7 @@ echo " ".$text['label-discard_abandoned_after']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-discard_abandoned_after']."\n"; echo "\n"; @@ -865,7 +865,7 @@ echo " ".$text['label-caller_id_name_prefix']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-caller_id_name_prefix']."\n"; echo "\n"; @@ -876,7 +876,7 @@ echo " ".$text['label-caller_announce_sound']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-caller_announce_sound']."\n"; echo "\n"; @@ -887,7 +887,7 @@ echo " ".$text['label-caller_announce_frequency']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-caller_announce_frequency']."\n"; echo "\n"; @@ -898,7 +898,7 @@ echo " ".$text['label-exit_keys']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-exit_keys']."\n"; echo "\n"; @@ -909,7 +909,7 @@ echo " ".$text['label-description']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo $text['description-description']."\n"; echo "\n"; @@ -918,8 +918,8 @@ echo " \n"; echo " \n"; if ($action == "update") { - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; } echo "
"; echo " \n";