[wp-trac] [WordPress Trac] #17243: wp_login_form: default for redirect leads to 404 on site in sub-folders

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 20 23:23:27 UTC 2011


#17243: wp_login_form: default for redirect leads to 404 on site in sub-folders
--------------------------+------------------
 Reporter:  esmi          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Template      |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 `                               <input type="hidden" name="redirect_to"
 value="' . esc_attr( $args['redirect'] ) . '" />`

 Thinking that should be esc_url().

 Or, if it should remain esc_attr() (and I don't think it should), then
 this patch should esc_url_raw() what we build from $_SERVER.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17243#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list