Skip to content

Commit

Permalink
Fix test, simplify
Browse files Browse the repository at this point in the history
refs #3710
  • Loading branch information
halfdan committed Sep 3, 2013
1 parent 9580e8f commit 2c378a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/AnonymizeIP/AnonymizeIP.php
Expand Up @@ -71,7 +71,7 @@ public static function applyIPMask($ip, $maskLength)
'ffff:ffff:ffff:0000::',
'ffff:ff00:0000:0000::'
);
return $ip & current(unpack('a16', inet_pton($masks[$maskLength])));
return $ip & pack('a16', inet_pton($masks[$maskLength]));
}
return $ip;
}
Expand Down

0 comments on commit 2c378a2

Please sign in to comment.