Fixed inet_pton(): Argument #1 ($ip) must not contain any null bytes src/XF/Util/Ip.php:14

change this whole bit starting on line 12
Basically from public static function stringToBinary until the closing }. The code you posted would be too much as it contains the binaryToString function as well.

Basically this bit:
1771077358445.webp

To make it easier feel free to just replace the file with the one I attached here. No other changes have been made.
 

Attachments

Basically from public static function stringToBinary until the closing }. The code you posted would be too much as it contains the binaryToString function as well.

Basically this bit:
View attachment 333883

To make it easier feel free to just replace the file with the one I attached here. No other changes have been made.
Thanks for that, it is now working well for the write before reply issue. But I have on member who (weirdly) just cannot login normally so I'm not yet sure how this affects that scenario.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.10).

Change log:
Prevent inet_pton() ValueError when IP address contains null bytes
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom