New gtld - regex issue while defining alias emaildomains
Hi. while trying to assign an alias emaildomain for an customer I found an issue in the reqex checking domain name validity (length):
./ispconfig/interface/web/mail/form/mail_aliasdomain.tform.php:89
'regex' => '/^@[\w.-]{2,64}.[a-zA-Z0-9-]{2,10}$/',
The domain of my customer had 11 chars .photography, so I change it to:
'regex' => '/^@[\w.-]{2,64}.[a-zA-Z0-9-]{2,20}$/',
I don't know the length limits for the new tlds, but 10 chars is def. not enough. You should check that and extend it in future releases.
Best regards,
Sebastian Stelmasik