Update call_center_active.php

This commit is contained in:
FusionPBX 2019-06-16 18:21:30 -06:00 committed by GitHub
parent fd40845791
commit bfbe6b9743
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2018
Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -91,7 +91,7 @@
}
var requestTime = function() {
var url = 'call_center_active_inc.php?queue_name=<?php echo $queue_name; ?>&name=<?php echo urlencode($name); ?>';
var url = 'call_center_active_inc.php?queue_name=<?php echo escape($queue_name); ?>&name=<?php echo urlencode(escape($name)); ?>';
new loadXmlHttp(url, 'ajax_response');
<?php
if (strlen($_SESSION["ajax_refresh_rate"]) == 0) { $_SESSION["ajax_refresh_rate"] = "1777"; }
@ -106,7 +106,7 @@
window.attachEvent('onload', requestTime);
}
function send_cmd(url) {
function send_command(url) {
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}