Make WordPress Core


Ignore:
Timestamp:
02/28/2008 09:57:49 PM (16 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade.php

    r6965 r7095  
    3333switch($step) :
    3434    case 0:
    35         $goback = clean_url(stripslashes(wp_get_referer()));
     35        $goback = stripslashes(wp_get_referer());
     36        $goback = clean_url($goback, null, 'url');
     37        $goback = urlencode($goback);
    3638?>
    3739<h2><?php _e('Database Upgrade Required'); ?></h2>
     
    4648        if ( empty( $_GET['backto'] ) )
    4749            $backto = __get_option('home') . '/';
    48         else
    49             $backto = clean_url(stripslashes($_GET['backto']));
     50        else {
     51            $backto = stripslashes(urldecode($_GET['backto']));
     52            $backto = clean_url($backto, null, 'url');
     53        }
    5054?>
    5155<h2><?php _e('Upgrade Complete'); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.