PHProxy / phproxy

PHP based web proxy. Initially developed by whitefyre
http://phproxy.github.io/
Other
123 stars 72 forks source link

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

Open JustinsKittens opened 1 year ago

JustinsKittens commented 1 year ago

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 commented 2 months ago

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