Make WordPress Core


Ignore:
Timestamp:
03/17/2007 09:04:56 AM (18 years ago)
Author:
markjaquith
Message:

use clean_url() instead of attribute_escape() when dealing with src/href to protect against XSS. props xknown. fixes #3986 for 2.0.

File:
1 edited

Legend:

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

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