[imp] IMAP ACLs [PATCH]

Didi Rieder adrieder at sbox.tugraz.at
Wed Feb 5 13:19:04 PST 2003


Quoting Didi Rieder <adrieder at sbox.tugraz.at>:

> > Are you saying the output of
> > Secret::read(Secret::getKey('imp'), $_SESSION['imp']['pass']);
> >
> > is not your password? If so, I need some help from someone who knows
> > more about the way passwords are stored in Horde / Imp.
> 
> Yes, there are some 4 characters (unprintable) attached.
> But this happens only in case of the test user with the space in its
> password.

Doing the following solves the problem in case of my test user, but I'm not sure
if it makes sense in any case:

if (preg_match('/\W/',  $pass)) {
    $pass = trim($pass, "\0x00");
    $pass = addslashes($pass);
    $pass = '"' . $pass . '"';
}

Didi

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



More information about the imp mailing list