mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove the spaces from the 'Voicemail Mail To' addresses.
This commit is contained in:
@@ -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'; }
|
||||
|
||||
Reference in New Issue
Block a user