Make WordPress Core


Ignore:
Timestamp:
03/17/2007 08:47:29 AM (19 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.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-admin/upload.php

    r4708 r5057  
    9191        if ( isset($tab_array[4]) && is_array($tab_array[4]) )
    9292                add_query_arg( $tab_array[4], $href );
    93         $_href = attribute_escape( $href);
     93        $_href = clean_url( $href);
    9494        $page_links = '';
    9595        $class = 'upload-tab alignleft';
Note: See TracChangeset for help on using the changeset viewer.