Make WordPress Core


Ignore:
Timestamp:
05/14/2009 04:11:01 PM (15 years ago)
Author:
ryan
Message:

urlencode login redirect. Props Viper007Bond. fixes #9817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r11323 r11328  
    188188
    189189    if ( !empty($redirect) ) {
    190         $login_url = add_query_arg('redirect_to', $redirect, $login_url);
     190        $login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);
    191191    }
    192192
Note: See TracChangeset for help on using the changeset viewer.