When adding an inbound route escape the + with \+.

This commit is contained in:
Mark Crane 2013-01-21 22:49:34 +00:00
parent 4adc7d8085
commit 25a05e6d6b
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ foreach($text as $key => $value) {
else {
if (strlen($condition_field_1) == 0) { $condition_field_1 = "destination_number"; }
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.'$';
}
else {