Allow # and * in the sanitized caller ID
This commit is contained in:
parent
3603711d77
commit
cd5ed73602
|
|
@ -645,8 +645,8 @@ if (!class_exists('xml_cdr')) {
|
||||||
$domain_uuid = urldecode($xml->variables->domain_uuid);
|
$domain_uuid = urldecode($xml->variables->domain_uuid);
|
||||||
|
|
||||||
//sanitize the caller ID
|
//sanitize the caller ID
|
||||||
$caller_id_name = preg_replace('#[^a-zA-Z 0-9\-\.]#', '', $caller_id_name);
|
$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_number = preg_replace('#[^0-9\-\#\*]#', '', $caller_id_number);
|
||||||
|
|
||||||
//misc
|
//misc
|
||||||
$this->array[$key][0]['ring_group_uuid'] = urldecode($xml->variables->ring_group_uuid);
|
$this->array[$key][0]['ring_group_uuid'] = urldecode($xml->variables->ring_group_uuid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue