mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
f3497e1411
commit
e35108ef1d
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user