Skip to content

get_magic_quotes_gpc() deprecated #4

Open
@RedDragonWebDesign

Description

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";
        }

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions