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

This commit is contained in:
Mark Crane
2013-01-21 22:49:34 +00:00
parent 6b7b697d41
commit 9947fe2c31

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 {