allow colons in ssh key names
This commit is contained in:
parent
9d6fe075b0
commit
e3e1059ba1
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user