Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374.
git-svn-id: https://develop.svn.wordpress.org/trunk@24305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2700b71b35
commit
db3587303d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user