Author Topic: Bug with PHP 5.3  (Read 337 times)

Mike

  • Guest
Bug with PHP 5.3
« on: February 20, 2011, 01:23:36 PM »
I was having an issue with the mod blocking me, and when I checked the database I noticed it was storing 0 as my IP address.  I traced it down to the file avh-visitor.php.
Where it says this:
Code: [Select]
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE)) {
The $ip variable needs changed to just $i at this point, because it is within the
Code: [Select]
foreach ($ip as $i) {loop.

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Bug with PHP 5.3
« Reply #1 on: February 20, 2011, 02:33:54 PM »
Thanks for the find.

I just fixed the problem and released a new version.
Peter van der Does
AVH Plugins developer

Mike

  • Guest
Re: Bug with PHP 5.3
« Reply #2 on: February 20, 2011, 03:17:40 PM »
No problem -- I REALLY hate spam, so anything I can do to help the problem, I will do gladly!