From f20cf0f1711fe7a4084f76754b7381176b8a765e Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 30 Nov 2007 17:20:16 +0000 Subject: Simplified email address check (fixes #1484679) --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/js/app.js') 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(); -- cgit v1.2.3