Backport of HTTP_IF_MODIFIED_SINCE double stripslashes() fix. fixes #2597

git-svn-id: https://develop.svn.wordpress.org/branches/2.0@4715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-01-10 13:50:30 +00:00
parent f3497e1411
commit e35108ef1d

View File

@ -1637,7 +1637,8 @@ class WP {
@header("ETag: $wp_etag");
// Support for Conditional GET
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) $client_etag = stripslashes($_SERVER['HTTP_IF_NONE_MATCH']);
if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
$client_etag = stripslashes(stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
else $client_etag = false;
$client_last_modified = trim( $_SERVER['HTTP_IF_MODIFIED_SINCE']);