1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Use punycode for HTTP header for radicale and create changelog

This commit is contained in:
Dimitri Huisman 2021-08-27 08:20:52 +00:00
parent 4f5cb0974e
commit 169a540692
2 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def basic_authentication():
user = models.User.query.get(user_email.decode("utf8"))
if nginx.check_credentials(user, password.decode('utf-8'), flask.request.remote_addr, "web"):
response = flask.Response()
response.headers["X-User"] = user.email
response.headers["X-User"] = models.IdnaEmail.process_bind_param(flask_login, user.email, "")
return response
response = flask.Response(status=401)
response.headers["WWW-Authenticate"] = 'Basic realm="Login Required"'

View File

@ -0,0 +1,3 @@
Webmail and Radicale (webdav) were not useable with domains with special characters such as umlauts.
Webmail and radicale now use punycode for logging in.
Punycode was not used in the HTTP headers. This resulted in illegal non-ASCII HTTP headers.