Skip to content
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

Error with filter_var in Author.php #3

Open
eboulme62980 opened this issue May 11, 2023 · 0 comments
Open

Error with filter_var in Author.php #3

eboulme62980 opened this issue May 11, 2023 · 0 comments

Comments

@eboulme62980
Copy link

Good evening,
It seems that there is a mistake in this file:
https://github.com/spbooks/phpmysql7/blob/Registration-Validation-Email/Ijdb/Controllers/Author.php
In the repo there is(line 30):
else if (filter_var($author['email']) == false) {
but that don't validate email unstead use:
else if (!filter_var($author['email'], FILTER_VALIDATE_EMAIL)){
Best regards
Emmanuel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant