mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@21755 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -46,7 +46,7 @@ get_current_screen()->set_help_sidebar(
|
||||
wp_reset_vars( array( 'action', 'error', 'file', 'theme' ) );
|
||||
|
||||
if ( $theme )
|
||||
$stylesheet = urldecode( $theme );
|
||||
$stylesheet = $theme;
|
||||
else
|
||||
$stylesheet = get_stylesheet();
|
||||
|
||||
@@ -68,7 +68,7 @@ if ( empty( $file ) ) {
|
||||
$relative_file = 'style.css';
|
||||
$file = $allowed_files['style.css'];
|
||||
} else {
|
||||
$relative_file = urldecode( stripslashes( $file ) );
|
||||
$relative_file = stripslashes( $file );
|
||||
$file = $theme->get_stylesheet_directory() . '/' . $relative_file;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user