Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_magic_quotes_gpc() deprecated #4

Open
RedDragonWebDesign opened this issue Apr 13, 2021 · 0 comments · May be fixed by #6
Open

get_magic_quotes_gpc() deprecated #4

RedDragonWebDesign opened this issue Apr 13, 2021 · 0 comments · May be fixed by #6

Comments

@RedDragonWebDesign
Copy link

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 pushed a commit to RedDragonWebDesign/php-paypal-ipn that referenced this issue May 4, 2023
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.
@RedDragonWebDesign RedDragonWebDesign linked a pull request May 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant