From b5903814d4e11b076834a06a1b42867ed7a71365 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 28 Feb 2008 21:57:49 +0000 Subject: [PATCH] urlencode the goback url to preserve any parameters. Fixes #5753 props DD32. git-svn-id: http://svn.automattic.com/wordpress/trunk@7095 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 4b7d3c15cd..67618d0aff 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -32,7 +32,9 @@ else

@@ -45,8 +47,10 @@ switch($step) : if ( empty( $_GET['backto'] ) ) $backto = __get_option('home') . '/'; - else - $backto = clean_url(stripslashes($_GET['backto'])); + else { + $backto = stripslashes(urldecode($_GET['backto'])); + $backto = clean_url($backto, null, 'url'); + } ?>