summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-11-30 17:20:16 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-11-30 17:20:16 +0000
commitbe95e85c3fcc92b5763a294d505d8b88e2965b78 (patch)
tree7e5bd441b44379637ad96405b3fec91e9481107f /roundcubemail/program/js/app.js
parent68d70fb899dcf057f731f0cd038d65bc49dea2a8 (diff)
Simplified email address check (fixes #1484679)
git-svn-id: https://svn.roundcube.net/trunk@934 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 9bb85689a..7162795fe 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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();