From 8eecf150516ef69e9196c03c70dafd6c0a143798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Molina?= Date: Tue, 29 Sep 2020 12:07:03 +0200 Subject: [PATCH] Deprecated function in PHP 7.4 Function get_magic_quotes_gpc is deprecated in PHP 7.4: https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative --- lib/PayPal/IPN/PPIPNMessage.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/PayPal/IPN/PPIPNMessage.php b/lib/PayPal/IPN/PPIPNMessage.php index 245d1e6..ded09ee 100644 --- a/lib/PayPal/IPN/PPIPNMessage.php +++ b/lib/PayPal/IPN/PPIPNMessage.php @@ -81,11 +81,7 @@ public function validate() return $this->isIpnVerified; } else { $request = self::IPN_CMD; - if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() == 1) { - $get_magic_quotes_exists = true; - } else { - $get_magic_quotes_exists = false; - } + $get_magic_quotes_exists = false; foreach ($this->ipnData as $key => $value) { if ($get_magic_quotes_exists) { $value = urlencode(stripslashes($value));