diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index 7f11f82214..b7b6a048ba 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2015 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -171,10 +171,10 @@ if ($_GET['a'] == "download") { echo "\n"; foreach ($xml->profile as $row) { echo "\n"; - echo " ".$row->name."\n"; - echo " ".$row->type."\n"; - echo " ".$row->data."\n"; - echo " ".$row->state."\n"; + echo " ".escape($row->name)."\n"; + echo " ".escape($row->type)."\n"; + echo " ".escape($row->data)."\n"; + echo " ".escape($row->state)."\n"; echo "  \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } @@ -192,7 +192,7 @@ if ($_GET['a'] == "download") { echo "\n"; echo " "; if ($_SESSION["domain_name"] == $gateway_domain_name) { - echo "".$gateway_name."@".$gateway_domain_name.""; + echo "".escape($gateway_name)."@".escape($gateway_domain_name).""; } elseif ($gateway_domain_name == '') { echo $gateway_name ? $gateway_name : $row->name; @@ -201,19 +201,19 @@ if ($_GET['a'] == "download") { } echo " \n"; echo " Gateway\n"; - echo " ".$row->to."\n"; - echo " ".$row->state."\n"; - echo " profile."+killgw+".$row->name."';\" />".$text['button-stop']."\n"; + echo " ".escape($row->to)."\n"; + echo " ".escape($row->state)."\n"; + echo " profile)."+killgw+".escape($row->name)."';\" />".$text['button-stop']."\n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } } foreach ($xml->alias as $row) { //print_r($row); echo "\n"; - echo " ".$row->name."\n"; - echo " ".$row->type."\n"; - echo " ".$row->data."\n"; - echo " ".$row->state."\n"; + echo " ".escape($row->name)."\n"; + echo " ".escape($row->type)."\n"; + echo " ".escape($row->data)."\n"; + echo " ".escape($row->state)."\n"; echo "  \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } @@ -250,26 +250,26 @@ if ($_GET['a'] == "download") { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; - echo " ".$text['title-sofia-status-profile']." ".$sip_profile_name." \n"; + echo " ".$text['title-sofia-status-profile']." ".escape($sip_profile_name)." \n"; echo "\n"; if ($sip_profile_name != "external") { - echo " \n"; + echo " \n"; } - echo " \n"; + echo " \n"; if ($profile_state == 'stopped') { - echo " \n"; + echo " \n"; } if ($profile_state == 'running') { - echo " \n"; + echo " \n"; } - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo "