Support of new TLDs

Issue #1285 resolved
Knut created an issue

Just sayin' ;-)

Mailpiler doesn’t support all new TLDs, i.e. .photography (like ours) et al.

So I changed the RegExp in function validemail(), line 153, in system/misc.php from

if(preg_match('/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,10})$/', $email)) {

to

if(preg_match('/^[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)@[a-zA-Z0-9-]+(.[a-zA-Z0-9-]+)(.[a-zA-Z]{2,12})$/', $email)) {

We use the latest Development Release.

Kind regards

Knut

Comments (3)

  1. Log in to comment