From 7d84965ef7a167b8f84f62fc529cee31b07d8d55 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 14 May 2009 16:11:01 +0000 Subject: [PATCH] urlencode login redirect. Props Viper007Bond. fixes #9817 git-svn-id: http://svn.automattic.com/wordpress/trunk@11328 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 815b4b9ceb..eebe536e14 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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);