Skip to content

Commit

Permalink
Merge pull request joomla#3429 from Achal-Aggarwal/idn-email-valiadtion
Browse files Browse the repository at this point in the history
[joomla#33601] Fixes validation of idn emails.
  • Loading branch information
infograf768 committed Apr 13, 2014
2 parents ca8e973 + 4fef1a6 commit bb36cd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media/system/js/validate-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var JFormValidator = new Class({

this.setHandler('email',
function (value) {
value = punycode.encode(value);
value = punycode.toASCII(value);
regex=/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
return regex.test(value);
}
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/validate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb36cd8

Please sign in to comment.