From cea56a764333f40e3a6fa7f5de8729802ef56cef Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 17 Feb 2025 11:57:05 -0700 Subject: [PATCH] Allow the @ in caller_id_name --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 3c7dff5c7a..df94661998 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -619,7 +619,7 @@ if (!class_exists('xml_cdr')) { $domain_uuid = urldecode($xml->variables->domain_uuid); //sanitize the caller ID - $caller_id_name = preg_replace('#[^a-zA-Z 0-9\-\.\#\*]#', '', $caller_id_name); + $caller_id_name = preg_replace('#[^a-zA-Z0-9\-.\#*@ ]#', '', $caller_id_name); $caller_id_number = preg_replace('#[^0-9\-\#\*]#', '', $caller_id_number); //misc