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
This commit is contained in:
westi 2008-02-28 21:57:49 +00:00
parent 09f33b6865
commit b5903814d4
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>