-
Notifications
You must be signed in to change notification settings - Fork 473
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 still used thus does not work properly in PHP 8.0 and later #702
Comments
Version info missing. This is already fixed: |
Thanks Elan, I downloaded the latest release source 3.0.4 which is from 2019, so the issue is not fixed in this version. |
latest tag is 3.0.13: See the changelog: |
For unknown reasons, the change / merge you made to solve this is gone and the "$clientEtagList = PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()" is still / back there at line 320. |
The change is correct: |
In file lib/HTTP/ConditionalGet.php:319 the deprecated (in PHP 8.0 and later removed) function get_magic_quotes_gpc is used:
$clientEtagList = get_magic_quotes_gpc()
? stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])
: $_SERVER['HTTP_IF_NONE_MATCH'];
I suggest to replace it with:
$clientEtagList = $_SERVER['HTTP_IF_NONE_MATCH'];
It worked for me.
Thanks,
Julian
The text was updated successfully, but these errors were encountered: