[wp-trac] [WordPress Trac] #26805: is_email not allowing apostrophe
WordPress Trac
noreply at wordpress.org
Mon Dec 8 15:28:30 UTC 2014
#26805: is_email not allowing apostrophe
-------------------------------+------------------------------
Reporter: contrid | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by JoshRoy):
Replying to [comment:4 boonebgorges]:
> Related: #18039.
>
> > The issue here is that the email is getting passed with a backslash
>
> Why? Where is it getting passed from? Part of WP's core interface, or
through a custom routine?
I'm not that familiar with core but to me it looks like wp_magic_quotes()
in wp-includes\load.php so when you call is_email( $_POST[ 'email' ] ) on
an email with an apostrophe/single quote it will also contain a backslash.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26805#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list