[wp-trac] [WordPress Trac] #34297: Passwords containing ' or " via wp_set_password() break login via wp-login.php

WordPress Trac noreply at wordpress.org
Sat Nov 7 15:44:41 UTC 2015


#34297: Passwords containing ' or " via wp_set_password() break login via wp-
login.php
------------------------------------+-----------------------
 Reporter:  manuakasam              |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  4.4
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-docs needs-codex  |     Focuses:  docs
------------------------------------+-----------------------

Comment (by wonderboymusic):

 Your only other choice is:

 {{{
 /**
  * Strip the slashes from Cookies
  */
 function _fix_cookies() {
     $_COOKIE = stripslashes_deep( $_COOKIE );
 }
 add_action( 'sanitize_comment_cookies', '_fix_cookies' );
 }}}

 I almost threw my computer out the window 4 years ago when I found this
 awful mess.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34297#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list