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:
parent
c76be06996
commit
f4bdb8415d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user