mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue