From de0b1ffbf8daea8afe0f11aba4c9f9b38062bdd2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 20 May 2013 20:20:22 +0000 Subject: [PATCH] Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374. git-svn-id: http://core.svn.wordpress.org/trunk@24305 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-files.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php index 5f969bf456..de6d15dbdd 100644 --- a/wp-includes/ms-files.php +++ b/wp-includes/ms-files.php @@ -57,8 +57,8 @@ header( "Last-Modified: $last_modified GMT" ); header( 'ETag: ' . $etag ); header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' ); -// Support for Conditional GET -$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? wp_unslash( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false; +// Support for Conditional GET - use stripslashes to avoid formatting.php dependency +$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false; if( ! isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) $_SERVER['HTTP_IF_MODIFIED_SINCE'] = false;