Problem with horde/lib/Auth.ph (unserialize)
jvandal@subi.to
jvandal@subi.to
Fri, 15 Mar 2002 09:26:44 -0500
Hi,
I use Horde (3.0-cvs) and IMP (4.0-cvs) (Redhat 7.2) and a few time when I log
on IMP, the following message appear on top of summary page...
---
Warning: unserialize() failed at offset 0 of 36 bytes
in /var/www/html/horde/lib/Auth.php on line 234
--- (3 times)
I'm new to PHP and I don't know if the following change can cause other problem
but this solve my problem...
horde/lib/Auth.php ... function getCredential($credential)
234c234
< $credentials = unserialize(Secret::read(Secret::getKey('auth'),
$GLOBALS['HTTP_SESSION_VARS']['__auth']['credentials']));
---
> $credentials = @unserialize(Secret::read(Secret::getKey('auth'),
$GLOBALS['HTTP_SESSION_VARS']['__auth']['credentials']));
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/