Confirmed IpRepository::logIp fails with binary IP

Xon

Well-known member
Licensed customer
Affected version
2.3.11
The IpRepository::logIp is document as supporting string or binary IP, but \XFEntity\Ip::verifyIp only supports a string ip due to the use of the `
stringToBinary` function which does not support a string-based IP.
PHP:
/**
...
 * @param string $ip String IP representation; binary version also supported
...
 */
public function logIp($userId, $ip, $contentType, $contentId, $action = '')
 
Back
Top Bottom