-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.7 won't validate email addresses in Register #143
Comments
I have the same issue! Glad to see you have it to. Will report back if I find a fix! |
I suspect it has to do with: "Escape MODX tags after htmlspecialchars because of the ampersand sign"
|
I again had this problem on a site. I have narrowed it down to loginvalidator.class.php lines 395 through 444. Comparing that to the 1.9.5, Line 412 has a different pattern variable (one slash removed it appears) and the condition variables added preg_quote when the pattern is called to add slashes. Evidently this change is what is breaking the register snippet. I am not very good with regular expressions so someone who is will need to figure it out. For the time being I just rolled back this particular function to the 1.9.5 version. |
Broken function: `public function email($key,$value) {
Working function:
|
What would we lose by doing something like:
The regex code was added 10 years ago. Unsure what value it adds at this point? What do you think @Jako ? |
I am fine with filter_var. |
Fixed in 1.9.9. |
When we upgraded to 1.9.7 the site would no longer validate email addresses in the Register snippet but when I downgraded to 1.9.5 the emails would validate again. We are running PHP 7.0 on Cpanel with MODX 2.6.5. I tested our same form on a fresh install on MODX cloud which worked fine but the same form wouldn't work on this site. I uninstalled and deleted all versions and packages of Login and re-downloaded and reinstalled 1.9.7 but it still wouldn't function. Not sure what changed but something isn't working with the new version.
The text was updated successfully, but these errors were encountered: