Hi,
I installed Modx 1.2.0 on an Apache
with PHP version > 5.3.0
WebLoginPE (version 1.3.1) returns an Error on "eregi()" function when checks email format during registration.
ATTENTION! "eregi(...)" function is deprecated since PHP 5.3.0!
So, I solved this little bug doing the substitution as following:
replaced "eregi()" with "preg_match()" and corrected the Regular Expression with more details.
FILE NAME: "
webloginpe.class.php"
LINE CODE:
2920
CURRENT CODE:
if (!eregi("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,7}$", $Email))
I replaced this line code with
REPLACE WITH:
if (!preg_match("/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,7}$/", $Email))
And now is all OK.
I hope this will be useful for you!
Thanks a lot
Bye
A. Castronuovo
(ITALY)