The module has some problems with sites where the site base url looks like this: http://www.example.org/sitename/ (RewriteBase is set to sitename in .htaccess).
ip_login.admin.inc contains relative urls starting with / (e.g. href="/admin)
I've attached a patch that modifies two links to fix this problem.
(Btw. It seems to me that some of these links in the 2.x-dev version are for Drupal 6 while others only work in Drupal 7.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ip_login-url_fix.patch | 1014 bytes | mtcs |
| ip_login-url_fix.patch | 1014 bytes | mtcs |
Comments
Comment #1
mtcs commentedSorry, the patch file was wrong.
I've attached a new version.
Comment #2
jim kirkpatrick commentedThanks for the catch mtcs... I've committed a couple of changes based on your patch but using the
l()function instead.This should fix the incorrect base paths on links, and the D7 links in D6... Must have been overzealous with my merging!
The new DEV will be made by the site later on, and I'll be releasing a beta2 very soon.
Also in this commit is some nice code to tell administrators what the site thinks their IP address is.
Comment #3
mtcs commentedThanks for the quick fix :)