[dev] Re: ipv6 address bug in Token.php
Chuck Hagenbuch
chuck at horde.org
Tue Nov 23 07:47:05 PST 2004
Quoting Tomas Hlavacek <tomas.hlavacek at elfove.cz>:
> I just want to inform you that I probably encoutered bug in CVS
> version of Horde in file Token.php. It seems to be problem caused by
> usage of IPv6 protocol which is not expected by Horde.
>
> I have got Apache/2.0.52 (Gentoo/Linux) and I am using IPv6 to
> access Horde. It is causing print of these messages into several parts
> of Horde:
>
> *Notice*: Undefined offset: 1 in */usr/lib/php/Horde/Token.php* on line *35*
> *Notice*: Undefined offset: 2 in */usr/lib/php/Horde/Token.php* on line *35*
> *Notice*: Undefined offset: 3 in */usr/lib/php/Horde/Token.php* on line *35
Looking at the code, I didn't see any reason that the value *had* to be
hex, or
any reason to have any assumptions about IP address format at all, so I just
base64-ed the remote address and returned it instead. Should fix the problem.
-chuck
--
"But she goes not abroad in search of monsters to destroy." - John
Quincy Adams
More information about the dev
mailing list