Fix title handling

This commit is contained in:
Kumi 2018-10-21 19:21:56 +02:00
parent 3748d24d43
commit 85d8ff947d
No known key found for this signature in database
GPG key ID: 8D4E139A5FF9082F

View file

@ -42,7 +42,7 @@ def addjob(req):
config = configparser.ConfigParser(strict=False, interpolation=None)
try:
title = re.sub(r"[^a-zA-Z0-9_\-]", "_", req.args["title"][0]) or output
title = re.sub(r"[^a-zA-Z0-9_\-]", "_", req.args["title"][0]) or "output"
except:
title = "output"