Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/upgrade.php

    r11384 r11611  
    6969    case 1:
    7070        wp_upgrade();
    71 
    72         if ( empty( $_GET['backto'] ) )
    73             $backto = __get_option( 'home' ) . '/';
    74         else {
    75             $backto = stripslashes( urldecode( $_GET['backto'] ) );
     71           
     72            $backto = empty($_GET['backto']) ? '' : $_GET['backto'] ;
     73            $backto = stripslashes( urldecode( $backto ) );
    7674            $backto = esc_url_raw( $backto  );
    77         }
     75            $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
    7876?>
    7977<h2><?php _e( 'Upgrade Complete' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.