Make WordPress Core


Ignore:
Timestamp:
09/04/2012 10:35:12 PM (14 years ago)
Author:
nacin
Message:

Always URL-encode a stylesheet directory value before using it in a URL. These situations are saved by wp_nonce_url(), but we should not depend on that. see #21749, for trunk only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r21358 r21755  
    4747
    4848if ( $theme )
    49     $stylesheet = urldecode( $theme );
     49    $stylesheet = $theme;
    5050else
    5151    $stylesheet = get_stylesheet();
     
    6969    $file = $allowed_files['style.css'];
    7070} else {
    71     $relative_file = urldecode( stripslashes( $file ) );
     71    $relative_file = stripslashes( $file );
    7272    $file = $theme->get_stylesheet_directory() . '/' . $relative_file;
    7373}
Note: See TracChangeset for help on using the changeset viewer.