Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (18 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

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

    r4495 r4656  
    2929switch($step) {
    3030    case 0:
    31         $goback = wp_specialchars(wp_get_referer());
     31        $goback = attribute_escape(stripslashes(wp_get_referer()));
    3232?>
    3333<p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p>
     
    4141            $backto = __get_option('home');
    4242        else
    43             $backto = wp_specialchars( $_GET['backto'] , 1 );
     43            $backto = attribute_escape(stripslashes($_GET['backto']));
    4444?>
    4545<h2><?php _e('Step 1'); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.