Closed bratkartoffel closed 1 year ago
This PR may fix the exception on PHP8 and warning on PHP7, but the whole whitelist code is not supporting IPv6 at all at the moment. I will try to fix this now and submit a dedicated PR.
this PR is now fixed and superseeded by https://github.com/dsoares/roundcube-rcguard/pull/49
@bratkartoffel : please check the new PR and potentially close yours
the other PR looks fine as far as i can tell, closing this. Thanks!
When a client connects to a roundcube instanced with rcguard active, the request aborts with a HTTP 500 error due to an exception.
Code to reproduce (extracted from the plugins code):
Prior PHP 8 (e.g. with 7.4), the '&' returns an int and issues just a warning (
A non-numeric value encountered in /tmp/test.php on line 14
).