Remove the spaces from the 'Voicemail Mail To' addresses.

This commit is contained in:
Mark Crane
2013-06-03 14:26:50 +00:00
parent 20ebba2ff6
commit 2c24a3484b
2 changed files with 22 additions and 10 deletions

View File

@@ -91,6 +91,9 @@ else {
$dial_string = check_str($_POST["dial_string"]);
$enabled = check_str($_POST["enabled"]);
$description = check_str($_POST["description"]);
//remove spaces
$vm_mailto = str_replace(" ", "", $vm_mailto);
}
//delete the user from the v_extension_users
@@ -620,7 +623,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$number_alias = $row["number_alias"];
$password = $row["password"];
$vm_password = $row["vm_password"];
$vm_password = str_replace("#", "", $vm_password); //preserves leading zeros
$accountcode = $row["accountcode"];
$effective_caller_id_name = $row["effective_caller_id_name"];
$effective_caller_id_number = $row["effective_caller_id_number"];
@@ -656,6 +658,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset ($prep_statement);
}
//clean the variables
$vm_password = str_replace("#", "", $vm_password);
$vm_mailto = str_replace(" ", "", $vm_mailto);
//set the defaults
if (strlen($limit_max) == 0) { $limit_max = '5'; }
if (strlen($call_timeout) == 0) { $call_timeout = '30'; }