mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 22:14:40 +03:00
fix login for account names with non-ascii chars
we include the username in session cookie values. but cookie values must be ascii-only, go's net/http's drops bad values. the typical solution is to querystring-encode/decode the cookie values, which we'll now do. problem found by arnt, thanks for reporting!
This commit is contained in:
4
testdata/httpaccount/domains.conf
vendored
4
testdata/httpaccount/domains.conf
vendored
@ -1,11 +1,11 @@
|
||||
Domains:
|
||||
mox.example: nil
|
||||
Accounts:
|
||||
mjl:
|
||||
mjl☺:
|
||||
Domain: mox.example
|
||||
FullName: mjl
|
||||
Destinations:
|
||||
mjl@mox.example:
|
||||
mjl☺@mox.example:
|
||||
Mailbox: Inbox
|
||||
Rulesets:
|
||||
-
|
||||
|
2
testdata/httpaccount/mox.conf
vendored
2
testdata/httpaccount/mox.conf
vendored
@ -3,7 +3,7 @@ User: 1000
|
||||
LogLevel: trace
|
||||
Hostname: mox.example
|
||||
Postmaster:
|
||||
Account: mjl
|
||||
Account: mjl☺
|
||||
Mailbox: postmaster
|
||||
Listeners:
|
||||
local: nil
|
||||
|
Reference in New Issue
Block a user