TLD Issues Adding Users

Permalink 3 users found helpful
One of our clients has a new .enterprises TLD

As we're trying to add new users to their C5 install, we get an error that says

Invalid email address provided.


I'm thinking that C5 is looking for .com, .org, .net, etc.

How can this be fixed?

76West
 
76West replied on at Permalink Reply
76West
To confirm my suspicion, if I add .com to the domain, the user can be added as expected.
CMSDeveloper replied on at Permalink Best Answer Reply
CMSDeveloper
Hi!

The domain TLD is limited to 7 signs max. (regex) in this file:
concrete\core\helpers\validation\strings.php
Rule: 22
Col: 85

Change the 7 to 14.

Sample:

if (preg_match('/^([a-zA-Z0-9\._\+-]+)\@((\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,14}|[0-9]{1,3})(\]?))$/', $em, $matches)) {


Kind Regards,
76West replied on at Permalink Reply
76West
Brilliant, thank you. Will give this a try.

> On Jul 30, 2014, at 7:58 PM, concrete5 Community <discussions@concretecms.com> wrote:
76West replied on at Permalink Reply
76West
Brilliant, thank you. Will give this a try.

> On Jul 30, 2014, at 7:58 PM, concrete5 Community <discussions@concretecms.com> wrote:
76West replied on at Permalink Reply
76West
Thanks again for your reply 5Numb3rs, however this isn't making a difference for us here.

We've tried changing both limiting digits in the RegEx capturing group that's verifying what happens after the .

Cleared cache, logout/login all with the same error.
CMSDeveloper replied on at Permalink Reply 2 Attachments
CMSDeveloper
Hello,

Did work on my test site!
Use the modified *string.php file (*attachment strings.zip)
Unzip in:
\concrete\core\helpers\validation\
For 5.6.3.1 version only!

ps

Domain is than as example:
http://www.webexperts.enterprises...
and valid email for example:
dave@webexperts.enterprises


(!and clear the cache in concrete5 and your browser)
AliceTtr replied on at Permalink Reply
AliceTtr
Thanks,

This is just the solution i searched for.
Got some registration problems with the new TLD to.

:)
76West replied on at Permalink Reply
76West
@5Number3rs thanks for this file.

Your modifications are the same that I made, and unfortunately have the same results.

I cannot add a user with a TLD of .enterprises

I've even tried changing the regex expression to 24, and have tried this on a fresh browser install with the same results.
CMSDeveloper replied on at Permalink Reply
CMSDeveloper
Hi!

It is working for me and others!

Did you maybe upgrade? Than copy the "strings.php" to the /updates/concrete5631/.. directory?


.
76West replied on at Permalink Reply
76West
Brilliant. That was it. modified strings in
/updates/concrete5.6.3.1_updater/concrete/core/helpers/validation/strings.php

Thanks for pointing us in the right directions
CMSDeveloper replied on at Permalink Reply
CMSDeveloper
Also a concrete5 570b1 issue!
Instead of maintaining the latest stable, the core team seems to busy with the concrete5 5.7.0
version. I test drive the 5.7.0 version but the adding/editing blocks is terrible.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Well said 5Numb3rs
Those are my observations also..