Update call_flow_edit.php

Escape the + with the back slash when used in the dialplan.
This commit is contained in:
FusionPBX 2016-11-11 13:55:11 -07:00 committed by GitHub
parent 7f98064094
commit 6af1e391fe
1 changed files with 8 additions and 3 deletions

View File

@ -158,9 +158,14 @@
$_POST["dialplan_uuid"] = $dialplan_uuid;
}
//set the destination_number
$destination_extension = str_replace("*", "\*", $call_flow_extension);
$destination_feature = str_replace("*", "\*", $call_flow_feature_code);
//escape special characters
$destination_extension = $call_flow_extension;
$destination_extension = str_replace("*", "\*", $destination_extension);
$destination_extension = str_replace("+", "\+", $destination_extension);
$destination_feature = $call_flow_feature_code;
$destination_feature = str_replace("*", "\*", $destination_feature);
$destination_feature = str_replace("+", "\+", $destination_feature);
//build the xml dialplan
$dialplan_xml = "<extension name=\"".$conference_center_name."\" continue=\"\" uuid=\"".$dialplan_uuid."\">\n";