We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 542538f commit a708a96Copy full SHA for a708a96
1 file changed
interface/web/mail/mail_forward_edit.php
@@ -123,13 +123,14 @@ function onSubmit() {
123
if(trim($this->dataRecord['destination']) == '') {
124
$app->tform->errorMessage .= $app->tform->lng('destination_error_empty') . '<br />';
125
} else {
126
- $targets = preg_split('/\s*[,;]\s*/', trim($this->dataRecord['destination']));
+ $targets = preg_split('/[,;\s]+/', trim($this->dataRecord['destination']));
127
foreach($targets as $target) {
128
if(!$target || filter_var($target, FILTER_VALIDATE_EMAIL) === false) {
129
$app->tform->errorMessage .= $app->tform->lng('destination_error_isemail') . '<br />';
130
break;
131
}
132
133
+ $this->dataRecord['destination'] = implode(', ', $targets);
134
135
136
//* Check if there is no active mailbox with this address
0 commit comments