mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add unicode except
This commit is contained in:
parent
1cf773bd40
commit
1a7c76dca7
@ -150,7 +150,7 @@ class PublicHandler(BaseHandler):
|
||||
entered_password = urllib.parse.unquote(
|
||||
base64.b64decode(data["password"]).decode("utf-8")
|
||||
)
|
||||
except binascii.Error:
|
||||
except (binascii.Error, UnicodeDecodeError):
|
||||
return self.finish_json(
|
||||
403,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user