mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-03 17:17:46 +00:00
Allow top level devel domain name up to 63 characters in email adresses
This corrects the server side validation, and fixes the bug: https://bugzilla.proxmox.com/show_bug.cgi?id=716
This commit is contained in:
parent
2c3c3ffe88
commit
87cb0e6064
@ -245,8 +245,8 @@ register_format('email', \&pve_verify_email);
|
||||
sub pve_verify_email {
|
||||
my ($email, $noerr) = @_;
|
||||
|
||||
# we use same regex as extjs Ext.form.VTypes.email
|
||||
if ($email !~ /^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/) {
|
||||
# we use same regex as in Utils.js
|
||||
if ($email !~ /^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,63}$/) {
|
||||
return undef if $noerr;
|
||||
die "value does not look like a valid email address\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user