Closed jugantner2 closed 1 year ago
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. Do you plan to release a new version with all current fixed and changes? Thanks, Julian
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. I downloaded the lattest v4 and also checked the file in the source tree here, both have the old code inside. So, it does not work anymore in PHP v8+
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