[yast-commit] <web-client> master : only full email address is valid in "Forward mail to" field (bnc#555727)
ref: refs/heads/master commit 645083ec9f849d71c8eac48d8924022710beb738 Author: Ladislav Slezak <lslezak@novell.com> Date: Wed Nov 18 13:45:07 2009 +0100 only full email address is valid in "Forward mail to" field (bnc#555727) --- .../app/views/administrator/index.html.erb | 5 ----- .../package/yast2-webclient-administrator.changes | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/administrator/app/views/administrator/index.html.erb b/plugins/administrator/app/views/administrator/index.html.erb index 4d7d831..9968248 100644 --- a/plugins/administrator/app/views/administrator/index.html.erb +++ b/plugins/administrator/app/views/administrator/index.html.erb @@ -19,11 +19,6 @@ for(i=0; i < emails.length; i++){ var email = $.trim(emails[i]); - - // add a dummy domain if it's missing - // user name without a domain is valid as well (local alias) - if (email.search(/@/) < 0) email += "@example.com"; - // this is a modified email regexp from jQuery validator // which accepts also user@localhost email address if (!/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(email)) diff --git a/plugins/administrator/package/yast2-webclient-administrator.changes b/plugins/administrator/package/yast2-webclient-administrator.changes index 08e2927..1f74e4b 100644 --- a/plugins/administrator/package/yast2-webclient-administrator.changes +++ b/plugins/administrator/package/yast2-webclient-administrator.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Nov 18 13:41:56 CET 2009 - lslezak@suse.cz + +- only full email address is valid in "Forward mail to" field + (bnc#555727) + +------------------------------------------------------------------- Fri Nov 13 08:18:48 CET 2009 - jsuchome@suse.cz - check the required field also for main submit button (bnc#554699) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Ladislav Slezak