From f20cf0f1711fe7a4084f76754b7381176b8a765e Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 30 Nov 2007 12:20:16 -0500 Subject: [PATCH] Simplified email address check (fixes #1484679) --- 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 9bb8568..7162795 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1674,7 +1674,7 @@ 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(); -- Gitblit v1.9.1