[imp] PATCH: IMP_ACL_rfc2086 - things I learnt yesterday!

Didi Rieder adrieder at sbox.tugraz.at
Thu Feb 6 10:22:17 PST 2003


Quoting Jan Schneider <jan at horde.org>:

> > Secret::read(Secret::getKey('imp'), $_SESSION['imp']['pass']);
> >
> > do you? I wonder if a bunch of null characters at the end is a no
> > problem unless you wrap the password up in quotes?
> 
> Yes, it seems so.
> 
> The null characters were returned by the mcrypt decrypting method. This
> extension is only used if available, that explains why the problem didn't
> occur everywhere.
> 
> I fixed the Secret::read() method to strip all null characters from the end
> of the decrypted data and now everything works fine again.

Great now it works, thanks!

Didi

-- 
-------------------------
Didi Rieder
adrieder at sbox.tugraz.at
PGPKey ID: 3431D0B0
-------------------------



More information about the imp mailing list