[wp-trac] [WordPress Trac] #55821: `is_email()` does not follow PHP FILTER_VALIDATE_EMAIL rules, when an email has double period (..)
WordPress Trac
noreply at wordpress.org
Thu Jun 2 12:56:46 UTC 2022
#55821: `is_email()` does not follow PHP FILTER_VALIDATE_EMAIL rules, when an email
has double period (..)
--------------------------+------------------------------
Reporter: khokansardar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 5.9.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Boniu91):
== Testing Instructions
These steps define how to reproduce the issue, and indicate the expected
behavior.
=== Steps to Reproduce
1. Add the following code to the footer.php, before closing `</html>`
https://snippi.com/s/8gji8lp
2. Visit the page and check the footer
3. 🐞 Bug occurs, `email address is valid` is displayed
=== Expected Results
When testing a patch to validate it works as expected:
- 3rd point should display `email address is not valid.`
=== Additionaly
We could change the `abc..def at xyz.com` to other not valid emails and see
the results.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55821#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list