Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-15-2019 08:52:07

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

email urls with long extensions error

Hi,

Emails are now able to have url's with longer extensions like .school .accountant or .construction but V9 won't accept the creation of accounts with long top-level domain names. How can I fix this?

List of NEW top level domains: https://www.domain.com/domains/new-doma … data-table

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#2 10-17-2019 08:08:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: email urls with long extensions error


Nick Hendler

Offline

 

#3 10-17-2019 09:20:18

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: email urls with long extensions error

Hi Nick,

So you were going to post back a fix in Feb 2019 it's now Oct 2019 https://forum.kryptronic.com/viewtopic.php?id=33843
and https://forum.kryptronic.com/viewtopic.php?id=33957 is using a workaround for the time being by making changes through Raw Database Admin for this type of email.

When I go to Raw and browse the USER table I cannot edit the ID column so I went into cpanel and phpmyadmin and did it from there.

NOTE: This is not a fix though as users cannot register with the new emails.

Can you look into the fix please.

Cheers,
Bruce


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#4 10-18-2019 09:09:16

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: email urls with long extensions error

Take a look at {private}/core/CORE_Mail/CORE_Mail.php.  In there, there is a check_address() function that is giving longer TLD an issue.  In that function, there is a regex:

Code:

if (!(preg_match('/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/',$address))) {

Change that to:

Code:

if (!(preg_match('/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,9})$/',$address))) {

And see if that helps.  That will get PEAR to check the address, which might also be a problem.


Nick Hendler

Offline

 

#5 10-22-2019 09:28:20

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: email urls with long extensions error

Hi Nick,

Yep, Nine works but you're going to need more letters.. eg bruce@test.construction  - construction is 12

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#6 10-23-2019 08:57:47

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: email urls with long extensions error

Perfect.  Is 12 the limit these days?


Nick Hendler

Offline

 

#7 10-23-2019 09:15:56

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: email urls with long extensions error

Hi Nick,

I had a quick look and I think it is 13 (.international).

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

Board footer