When using multiple email addresses with faxing commas are used between email addresses. The commas must be escaped this change automatically does the escaping so the end user doesn't have to do it.

This commit is contained in:
Mark Crane
2014-02-19 03:11:42 +00:00
parent c981e783f1
commit 6733521ac4
2 changed files with 26 additions and 16 deletions
+6
View File
@@ -202,6 +202,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
return;
}
//escape the commas with a backslash
$fax_email = str_replace(",", "\\,", $fax_email);
//set the $php_bin
//if (file_exists(PHP_BINDIR."/php")) { $php_bin = 'php'; }
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
@@ -513,6 +516,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset ($prep_statement);
}
//remove the backslash
$fax_email = str_replace("\\", "", $fax_email);
//set the dialplan_uuid
if (strlen($dialplan_uuid) == 0) {
$dialplan_uuid = uuid();