forked from 3wordchant/capsul-flask
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()
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user