Make WordPress Core


Ignore:
Timestamp:
03/17/2007 08:46:59 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 trunk.

File:
1 edited

Legend:

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

    r4887 r5056  
    3636switch($step) :
    3737    case 0:
    38         $goback = attribute_escape(stripslashes(wp_get_referer()));
     38        $goback = clean_url(stripslashes(wp_get_referer()));
    3939?>
    4040<h2><?php _e('Database Upgrade Required'); ?></h2>
     
    5050            $backto = __get_option('home') . '/';
    5151        else
    52             $backto = attribute_escape(stripslashes($_GET['backto']));
     52            $backto = clean_url(stripslashes($_GET['backto']));
    5353?>
    5454<h2><?php _e('Upgrade Complete'); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.