diff options
author | thomascube <thomas@roundcube.net> | 2007-11-30 17:20:16 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-11-30 17:20:16 +0000 |
commit | f20cf0f1711fe7a4084f76754b7381176b8a765e (patch) | |
tree | 390194b406c5a5e0aef4e70383639c530c5719ca /program/js/app.js | |
parent | ed54070eb5c942e9745efd7ad57a4ff02deeaf04 (diff) |
Simplified email address check (fixes #1484679)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 9bb85689a..7162795fe 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1674,7 +1674,7 @@ function rcube_webmail() var input_message = rcube_find_object('_message'); // check for empty recipient - if (input_to && !rcube_check_email(input_to.value, true)) + if (input_to && !rcube_check_email(input_to.value.replace(/^\s+/, '').replace(/[\s,;]+$/, ''), true)) { alert(this.get_label('norecipientwarning')); input_to.focus(); |