1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-21 13:21:59 +02:00

Function get_magic_quotes_gpc() is now deprecated in PHP 7.4 #661

- removed deprecated function that since PHP 5.4.0 returns FALSE always, and since PHP 7.4 is deprecated.
This commit is contained in:
robbykrlos
2020-03-06 12:13:08 +02:00
committed by Elan Ruusamäe
parent 3036ee9f55
commit 5705fc9d89

View File

@@ -317,9 +317,7 @@ class HTTP_ConditionalGet
if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) { if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
return false; return false;
} }
$clientEtagList = get_magic_quotes_gpc() $clientEtagList = $_SERVER['HTTP_IF_NONE_MATCH'];
? 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);