Make WordPress Core


Ignore:
Timestamp:
05/22/2011 11:19:42 PM (15 years ago)
Author:
ryan
Message:

Sanitize guid on save and display. Sanitize mime type on save. Don't allow changing mime type via edit form handlers. Protect hidden meta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r17989 r17994  
    14411441        $url = str_replace( 'https://', 'http://', $url );
    14421442
    1443     return $url;
     1443    return esc_url_raw( $url );
    14441444}
    14451445
     
    15261526
    15271527    foreach ( (array) $headers as $header ) {
    1528         $url = $header->guid;
     1528        $url = esc_url_raw( $header->guid );
    15291529        $header = basename($url);
    15301530        $header_images[$header] = array();
Note: See TracChangeset for help on using the changeset viewer.