urlencode the goback url to preserve any parameters. Fixes #5753 props DD32.

git-svn-id: https://develop.svn.wordpress.org/trunk@7095 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-02-28 21:57:49 +00:00
parent c76be06996
commit f4bdb8415d
1 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,9 @@ else
<?php else :
switch($step) :
case 0:
$goback = clean_url(stripslashes(wp_get_referer()));
$goback = stripslashes(wp_get_referer());
$goback = clean_url($goback, null, 'url');
$goback = urlencode($goback);
?>
<h2><?php _e('Database Upgrade Required'); ?></h2>
<p><?php _e('Your WordPress database is out-of-date, and must be upgraded before you can continue.'); ?></p>
@ -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');
}
?>
<h2><?php _e('Upgrade Complete'); ?></h2>
<p><?php _e('Your WordPress database has been successfully upgraded!'); ?></p>