[wp-trac] [WordPress Trac] #18658: Allow apostrophe in email validation
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 23 15:25:50 UTC 2011
#18658: Allow apostrophe in email validation
-------------------------+------------------------------
Reporter: swinhoe | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Validation | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by theandystratton):
Typically in PHP I do something like this to get unescaped `$_POST` data:
`$x = get_magic_quotes_gpc() ? stripslashes($_POST['x']) : $_POST['x'];`
WP is stripping the superglobals with `wp_magic_quotes()` but only if
magic quotes are on. After that, regardless of settings, it's adding
slashes back via the call to `add_magic_quotes`
Regardless of your PHP settings, WP is protecting the data. It's secure
and awesome, but I think this is just an outlier case that probably
doesn't happen very often so it hasn't been a priority.
A slash in an email address is just ugly, but it's still valid and we
should allow it...right? ;]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18658#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list