From cd5ed73602a6902fc92ca9b6704f3f0525a2d3c2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 11 Feb 2025 13:26:32 -0700 Subject: [PATCH] Allow # and * in the sanitized caller ID --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 2ae2501ea6..f6f5029897 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -645,8 +645,8 @@ 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_number = preg_replace('#[^0-9\-]#', '', $caller_id_number); + $caller_id_name = preg_replace('#[^a-zA-Z 0-9\-\.\#\*]#', '', $caller_id_name); + $caller_id_number = preg_replace('#[^0-9\-\#\*]#', '', $caller_id_number); //misc $this->array[$key][0]['ring_group_uuid'] = urldecode($xml->variables->ring_group_uuid);