RSS Feed/News IpRepository::logIp fails with binary IP

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
32,238
Points
823

Reputation:

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:

Code:
/**
...
 * @param string $ip String IP representation; binary version also supported
...
 */
public function logIp($userId, $ip, $contentType, $contentId, $action = '')

Continue reading...
 
Status
Not open for further replies.
Top