Cannot register, always get: The e-mail address is invalid (General)

by WorldofBB, Tuesday, February 04, 2020, 22:55 (14 days ago) @ Auge

I actually sent you an e-mail about this on January 2nd because the issue also affects the addons forum at:

https://projekt-mlf.de/forum/

I sent the e-mail to the address listed as the contact page listed on the bottom of the main page of the addons site.

Basically, this is the issue that is discussed in this thread:

https://mylittleforum.net/forum/index.php?id=11780

It can be resolved by making the code change on line 393 in functions.inc.php from

if (!preg_match("/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,}|[0-9]{1,3})(\]?)$/", $email))

to

if  ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) )  {

What I had found was that the problem doesn't appear to be anything to do with the code change in 2.4.20 - it affects any version of mylittleforum 2.4x when using any version of php 7.3 or higher.

So whatever caused the issue was code changes in php 7.3, and it appears to affect all versions of mlf 2.x that use that function. The solution for me was to either make that code change or to revert the version of php on the server to 7.2 or lower.


Complete thread:

 RSS Feed of thread

powered by my little forum