allow colons in ssh key names

This commit is contained in:
forest 2021-05-12 12:14:55 -05:00
parent 9d6fe075b0
commit e3e1059ba1

View File

@ -312,8 +312,8 @@ def ssh_public_keys():
name = parts[0].strip()
else:
errors.append("Name is required")
if not re.match(r"^[0-9A-Za-z_@. -]+$", name):
errors.append("Name must match \"^[0-9A-Za-z_@. -]+$\"")
if not re.match(r"^[0-9A-Za-z_@:. -]+$", name):
errors.append("Name must match \"^[0-9A-Za-z_@:. -]+$\"")
if method == "POST":
content = request.form["content"]