File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,14 @@ function onSubmit() {
123123 if (trim ($ this ->dataRecord ['destination ' ]) == '' ) {
124124 $ app ->tform ->errorMessage .= $ app ->tform ->lng ('destination_error_empty ' ) . '<br /> ' ;
125125 } else {
126- $ targets = preg_split ('/\s* [,;]\s* / ' , trim ($ this ->dataRecord ['destination ' ]));
126+ $ targets = preg_split ('/[,;\s]+ / ' , trim ($ this ->dataRecord ['destination ' ]));
127127 foreach ($ targets as $ target ) {
128128 if (!$ target || filter_var ($ target , FILTER_VALIDATE_EMAIL ) === false ) {
129129 $ app ->tform ->errorMessage .= $ app ->tform ->lng ('destination_error_isemail ' ) . '<br /> ' ;
130130 break ;
131131 }
132132 }
133+ $ this ->dataRecord ['destination ' ] = implode (', ' , $ targets );
133134 }
134135
135136 //* Check if there is no active mailbox with this address
You can’t perform that action at this time.
0 commit comments