urlencode login redirect. Props Viper007Bond. fixes #9817

git-svn-id: http://svn.automattic.com/wordpress/trunk@11328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-14 16:11:01 +00:00
parent 4f149f8c6d
commit 7d84965ef7
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ function wp_login_url($redirect = '') {
$login_url = site_url('wp-login.php', 'login');
if ( !empty($redirect) ) {
$login_url = add_query_arg('redirect_to', $redirect, $login_url);
$login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);
}
return apply_filters('login_url', $login_url, $redirect);