From ad16aee80fcc13908dfc2c8be899c7f95a6a89f2 Mon Sep 17 00:00:00 2001 From: RedDragonWebDesign Date: Thu, 4 May 2023 04:48:36 -0700 Subject: [PATCH] fix #4 - get_magic_quotes_gpc() deprecated The magic quotes feature is completely removed as of PHP 8.0 Since it is impossible for it to be turned on, we do not need to stripslashes() at all now. --- src/PaypalIPN.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/PaypalIPN.php b/src/PaypalIPN.php index 7f510ed..aa78a83 100644 --- a/src/PaypalIPN.php +++ b/src/PaypalIPN.php @@ -86,16 +86,8 @@ function verifyIPN() } } $req = 'cmd=_notify-validate'; - $get_magic_quotes_exists = false; - if (function_exists('get_magic_quotes_gpc')) { - $get_magic_quotes_exists = true; - } foreach ($myPost as $key => $value) { - if ($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1) { - $value = urlencode(stripslashes($value)); - } else { - $value = urlencode($value); - } + $value = urlencode($value); $req .= "&$key=$value"; }