mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
fix #1861: Handle colons in passwords
This commit is contained in:
parent
66ea28b50a
commit
a0dcd46483
@ -63,7 +63,7 @@ def basic_authentication():
|
||||
authorization = flask.request.headers.get("Authorization")
|
||||
if authorization and authorization.startswith("Basic "):
|
||||
encoded = authorization.replace("Basic ", "")
|
||||
user_email, password = base64.b64decode(encoded).split(b":")
|
||||
user_email, password = base64.b64decode(encoded).split(b":", 1)
|
||||
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()
|
||||
|
1
towncrier/newsfragments/1861.bugfix
Normal file
1
towncrier/newsfragments/1861.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix a bug preventing colons from being used in passwords when using radicale/webdav.
|
Loading…
Reference in New Issue
Block a user