By fpelliz on Wednesday, 31 August 2022
Replies 1
Likes 0
Views 509
Votes 0
Hi
PHP 8 does not like the get_magic_quotes_gpc() instruction, and thus the site becomes not accessible.
While searching for all instances of that command, I found one in the file gwejson.php.
Am I the only one to have such problem?
Is it safe to just remove the whole block
if (ini_get("magic_quotes_gpc"))
{
$requestData = stripslashes($requestData);
}

$requestObject = json_decode($requestData, 0);
if (!$requestObject)
{
$requestObject = json_decode(utf8_encode($requestData), 0);
}
from line 197 to 206?

Thanks to advise.
Rgds, Franco
Sorry for the VERY delayed response - your post was stuck in the moderation queue for some reason

That line of code should not throw any errors as its only checking for an ini setting
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post