Fix 'Unsupported operand types: string & bool' with IPv6 clients on PHP 8+ - #46
Closed
bratkartoffel wants to merge 1 commit into
Closed
Fix 'Unsupported operand types: string & bool' with IPv6 clients on PHP 8+#46bratkartoffel wants to merge 1 commit into
bratkartoffel wants to merge 1 commit into
Conversation
|
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. |
pbiering
suggested changes
Mar 8, 2023
pbiering
added a commit
to pbiering/roundcube-rcguard
that referenced
this pull request
Mar 8, 2023
|
this PR is now fixed and superseeded by #49 @bratkartoffel : please check the new PR and potentially close yours |
pbiering
added a commit
to pbiering/roundcube-rcguard
that referenced
this pull request
Mar 8, 2023
Author
|
the other PR looks fine as far as i can tell, closing this. Thanks! |
pbiering
added a commit
to pbiering/roundcube-rcguard
that referenced
this pull request
Mar 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).