fix bug when created query string is not present
This commit is contained in:
@ -47,7 +47,7 @@ def index():
|
||||
created = request.args.get('created')
|
||||
|
||||
# this is here to prevent xss
|
||||
if not re.match(r"^(cvm|capsul)-[a-z0-9]{10}$", created):
|
||||
if created and not re.match(r"^(cvm|capsul)-[a-z0-9]{10}$", created):
|
||||
created = '___________'
|
||||
|
||||
# for now we are going to check the IP according to the virt model
|
||||
|
Reference in New Issue
Block a user