Make WordPress Core


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

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

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

    r3923 r4656  
    6868
    6969    case 0:
    70     $goback = wp_specialchars(wp_get_referer());
     70    $goback = attribute_escape(stripslashes(wp_get_referer()));
    7171?>
    7272<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>
     
    8787        $backto = __get_option('home');
    8888    else
    89         $backto = wp_specialchars( $_GET['backto'] , 1 );
     89        $backto = attribute_escape(stripslashes($_GET['backto']));
    9090?>
    9191<h2><?php _e('Step 1'); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.