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

Uncaught Error: Call to undefined function get_magic_quotes_gpc() #32

Open
JustinsKittens opened this issue Apr 3, 2023 · 1 comment

Comments

@JustinsKittens
Copy link

When accessing index.php on my PHP web server, I get this error in the console of the server:

[Mon Apr  3 17:59:25 2023] 172.31.196.1:41718 [200]: GET /Nanite-Proxy/index.php - Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/runner/JCStudios/Nanite-Proxy/index.php:93
Stack trace:
#0 {main}
  thrown in /home/runner/JCStudios/Nanite-Proxy/index.php on line 93

My details:
Server OS = Ubuntu 20.04.2 LTS
Client OS = ChromeOS 111.0.5563.100 (32-bit)
Server Host = Replit
URL to Code = https://replit.com/@JustinsKittens/JCStudios (Just fork it or press the < > (Show code) button)

If you need any more info, please tell me
Thank you in advance

@Quix0r
Copy link

Quix0r commented Sep 9, 2024

That code fragment needs to be replaced with true as get_magic_quotes_gpc() has been removed from PHP. If you do that, PHProxy's own function _stripslashes() is being used to sanitize input. There is some discussion going on around it: https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative

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

No branches or pull requests

2 participants