From d87f92608dfad85690a70fc2b4f6843bd2450b13 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 11 Nov 2016 13:55:11 -0700 Subject: [PATCH] Update call_flow_edit.php Escape the + with the back slash when used in the dialplan. --- app/call_flows/call_flow_edit.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index e90316c1bb..4d7af9ff68 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -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 = "\n";