ip_address() function can return more than one IP ;)

On my customer's page ip_address have even 3 standard IPs in one record (length 40 was ok in this case).
Not so far ago I had an issue when users_stats wanted to write 2 IPv6 addresses returned by ip_address() - lenght set to 40 was not enough.

I attached a patch which increment length to 128 - enough to storage 3 IPv6 in one record and cut $ip_address before INSERT if it's longer than 128 to avoid errors.

CommentFileSizeAuthor
user_stats-d7-7104-2.patch1.9 KBjavjaff
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

javjaff created an issue.