php-paypal-ipn icon indicating copy to clipboard operation
php-paypal-ipn copied to clipboard

get_magic_quotes_gpc() deprecated

Open RedDragonWebDesign opened this issue 4 years ago • 0 comments

Getting this error in PHP 7.4.

ERROR - 2021-04-08 14:57:47 --> Severity: 8192 --> Function get_magic_quotes_gpc() is deprecated /home/website1/ci_main/vendor/overint/php-paypal-ipn/src/PaypalIPN.php 94
URI: /general/paypal_listener

Code involved:

        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) { // line 94
                $value = urlencode(stripslashes($value));
            } else {
                $value = urlencode($value);
            }
            $req .= "&$key=$value";
        }

RedDragonWebDesign avatar Apr 13 '21 02:04 RedDragonWebDesign