When adding an inbound route escape the + with \+.
This commit is contained in:
parent
4adc7d8085
commit
25a05e6d6b
|
|
@ -98,7 +98,8 @@ foreach($text as $key => $value) {
|
||||||
else {
|
else {
|
||||||
if (strlen($condition_field_1) == 0) { $condition_field_1 = "destination_number"; }
|
if (strlen($condition_field_1) == 0) { $condition_field_1 = "destination_number"; }
|
||||||
if (is_numeric($condition_expression_1)) {
|
if (is_numeric($condition_expression_1)) {
|
||||||
//the number is numeric
|
//the number is numeric
|
||||||
|
$condition_expression_1 = str_replace("+", "\+", $condition_expression_1);
|
||||||
$condition_expression_1 = '^'.$condition_expression_1.'$';
|
$condition_expression_1 = '^'.$condition_expression_1.'$';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue