mirror of
https://github.com/mrclay/minify.git
synced 2025-08-01 20:00:42 +02:00
Make code symmetric: Check on ConditionalGet as well
This partly reverts 5705fc9d89
This commit is contained in:
@@ -317,7 +317,9 @@ class HTTP_ConditionalGet
|
|||||||
if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$clientEtagList = $_SERVER['HTTP_IF_NONE_MATCH'];
|
$clientEtagList = PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()
|
||||||
|
? stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])
|
||||||
|
: $_SERVER['HTTP_IF_NONE_MATCH'];
|
||||||
$clientEtags = explode(',', $clientEtagList);
|
$clientEtags = explode(',', $clientEtagList);
|
||||||
|
|
||||||
$compareTo = $this->normalizeEtag($this->_etag);
|
$compareTo = $this->normalizeEtag($this->_etag);
|
||||||
|
Reference in New Issue
Block a user