hueta2
This commit is contained in:
@@ -29,7 +29,7 @@ def safe_username(username):
|
||||
return False
|
||||
if "/" in username or "\\" in username or username in (".", ".."):
|
||||
return False
|
||||
if "\x00" in username:
|
||||
if "\x00" in username or any(ord(c) < 0x20 for c in username):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user