From 5705fc9d899843fe8f6b6e0d361ccf01974b34a1 Mon Sep 17 00:00:00 2001 From: robbykrlos Date: Fri, 6 Mar 2020 12:13:08 +0200 Subject: [PATCH] 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. --- lib/HTTP/ConditionalGet.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/HTTP/ConditionalGet.php b/lib/HTTP/ConditionalGet.php index 9491549..8bfd0af 100644 --- a/lib/HTTP/ConditionalGet.php +++ b/lib/HTTP/ConditionalGet.php @@ -317,9 +317,7 @@ class HTTP_ConditionalGet if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) { return false; } - $clientEtagList = get_magic_quotes_gpc() - ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) - : $_SERVER['HTTP_IF_NONE_MATCH']; + $clientEtagList = $_SERVER['HTTP_IF_NONE_MATCH']; $clientEtags = explode(',', $clientEtagList); $compareTo = $this->normalizeEtag($this->_etag);