[imp] IMAP ACLs [PATCH]
Chris Hastie
lists at oak-wood.co.uk
Tue Feb 4 18:05:10 PST 2003
On Tue, 4 Feb 2003, Didi Rieder <adrieder at sbox.tugraz.at> wrote
>Quoting Didi Rieder <adrieder at sbox.tugraz.at>:
>
>> However, after applying your patch I get the following error:
>>
>> Could not retrieve ACL - Unexpected response from server to: login : 0 BAD
>> Unexpected extra arguments to Login
>
>Ok, I found it!!
>My test user has a blank in its password, and this is not correctly handled by
>the login funtion used for getting the ACLs. Maybe there will also occour
>strange things if the password has some special character like "\/?'
>
Yep, I just mailed you off list before I saw your message (didn't feel I
should be shouting "Hey, Didi's password has a space in it" to
everyone!)
I'll play around with this, but if any one knows the answers straight
off it would save me a lot of time.
So for plain text login I'm guessing I need to quote any password with a
blank or maybe other non alpha numeric characters, eg
if (preg_match("/\W/",$pass)) {
$pass = '"'.$pass.'"';
}
Is this also true for Digest-MD5 and CRAM-MD5, or are they OK with
unquoted blank space in passwords?
--
Chris Hastie
More information about the imp
mailing list