I set an IP in format 123.123.*.* but the form did not accept it saying "Only numbers, spaces, commas, dots and hyphens allowed in IP ranges."

This is obviously a critical issue... please help.

Comments

jim kirkpatrick’s picture

Priority: Critical » Major
Status: Active » Fixed

Sorry, missed out the * character when testing... The fix is to change line 120, which looks like...

  $ip_login_addresses = strtr($edit['ip_login_match'], ' ,.-', '||||');

...to the following by adding a * to the second argument and a | to the third like this:

  $ip_login_addresses = strtr($edit['ip_login_match'], ' ,.-*', '|||||');

I've committed this fix at http://drupalcode.org/project/ip_login.git/commit/af631b0 so will be in 6.x-2.x-DEV later today when the packages are refreshed by Drupal.org.

vacilando’s picture

It works, thanks.

Status: Fixed » Closed (fixed)

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