From 40ac4ff21231dd71d0beabb48adabaf0f6e5b700 Mon Sep 17 00:00:00 2001 From: kovacsrobi Date: Fri, 26 Mar 2021 23:31:51 +0100 Subject: [PATCH] Correct ignore to IGNORE in iconv paramter. --- app/registrations/resources/classes/registrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index df076b2cda..8c3aba95ce 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -88,7 +88,7 @@ if (!class_exists('registrations')) { //get sofia status profile information including registrations $cmd = "api sofia xmlstatus profile '".$field['sip_profile_name']."' reg"; $xml_response = trim(event_socket_request($fp, $cmd)); - if (function_exists('iconv')) { $xml_response = iconv("utf-8", "utf-8//ignore", $xml_response); } + if (function_exists('iconv')) { $xml_response = iconv("utf-8", "utf-8//IGNORE", $xml_response); } $xml_response = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/u', '', $xml_response); if ($xml_response == "Invalid Profile!") { $xml_response = "".$text['label-message'].""; } $xml_response = str_replace("", "", $xml_response);