Hi,
I've spotted a bug in the country detection.
Here it is :

When you compare the IP range country with the country keys stored in variables, you take spaces out from the name so that Burkina Faso becomes burkinafaso.
In this case, a key exists in the array.

However, with Cote d'Ivoire, the processing finds coted'ivoire, which has no match in the variables array. This is a special case as the name of this country has become its French translation worldwide.

So, in lines around 332, change some lines with

  $country_name = drupal_strtolower(str_replace(' ', '', $country_name));
  $country_name = str_replace('\'','',$country_name);
  $variable_name = "countryban_" . $country_name; 
  $banvalue = variable_get($variable_name, -1);

Comments

jboukes’s picture

Assigned: Unassigned » jboukes
Status: Needs review » Fixed

Fixed in 6.x-1.1-beta1

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.