Make WordPress Core


Ignore:
Timestamp:
06/19/2009 07:30:17 PM (17 years ago)
Author:
markjaquith
Message:

Create wp_validate_redirect(), have the upgrade done link use it. props Westi. fixes #10193 for trunk

File:
1 edited

Legend:

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

    r11384 r11610  
    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.