From 2661ad7bf09494d87bd8a89dfce4b6f8e7432b43 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 17 Feb 2025 11:56:01 -0700 Subject: [PATCH] Allow the @ in the 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 90c00cd340..5c14cf3bd5 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -648,7 +648,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