Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnonymizeIP is not 64bit clean #1735

Closed
anonymous-matomo-user opened this issue Sep 27, 2010 · 3 comments
Closed

AnonymizeIP is not 64bit clean #1735

anonymous-matomo-user opened this issue Sep 27, 2010 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

I had to realize that the AnonymizeIP plugin is not 64bit clean. It sets either 255.255.255.255 or 0.0.0.0 as IP address, depending on the setting of ip_address_mask_length.

The best workaround I found was masking the result of the anonymization with 0xffffffff, as you can find in the attached patch.

@anonymous-matomo-user
Copy link
Author

Attachment:
anonymizeIP.diff

@robocoder
Copy link
Contributor

(In [3186]) fixes #1735 - thanks arnotron

@robocoder
Copy link
Contributor

(In [3188]) refs #1735 - oops; my mistake

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants