upas/nfs: correctly quote IMAP LOGIN arguments
According to RFC 3501 the arguments to the LOGIN command should be quoted strings (or length prefixed string literals). Without quoting, authentication to some IMAP servers (e.g. Dovecot) will fail.
This commit is contained in:
parent
93c75d2bad
commit
db27122d39
@ -214,7 +214,7 @@ imaplogin(Imap *z)
|
||||
return -1;
|
||||
}
|
||||
|
||||
sx = imapcmdsx(z, nil, "LOGIN %Z %Z", up->user, up->passwd);
|
||||
sx = imapcmdsx(z, nil, "LOGIN %#Z %#Z", up->user, up->passwd);
|
||||
freeup(up);
|
||||
if(sx == nil)
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user