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() name = parts[0].strip()
else: else:
errors.append("Name is required") errors.append("Name is required")
if not re.match(r"^[0-9A-Za-z_@. -]+$", name): if not re.match(r"^[0-9A-Za-z_@:. -]+$", name):
errors.append("Name must match \"^[0-9A-Za-z_@. -]+$\"") errors.append("Name must match \"^[0-9A-Za-z_@:. -]+$\"")
if method == "POST": if method == "POST":
content = request.form["content"] content = request.form["content"]