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:
Mechiel Lukkien
2024-04-11 23:11:31 +02:00
parent d74610c345
commit 666f84edea
4 changed files with 19 additions and 11 deletions

View File

@ -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:
-

View File

@ -3,7 +3,7 @@ User: 1000
LogLevel: trace
Hostname: mox.example
Postmaster:
Account: mjl
Account: mjl
Mailbox: postmaster
Listeners:
local: nil