From 5a51ac7c8e1d6b9225253743a671ee4ec8481372 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 3 Apr 2006 05:59:03 +0000 Subject: [PATCH] Do a therapuetic double strip on HTTP_IF_MODIFIED_SINCE since we code in an imperfect world. fixes #2597 git-svn-id: https://develop.svn.wordpress.org/trunk@3682 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 08f194cb0c..c596e04d6b 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -245,7 +245,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']);