Fix title handling. For real this time. I hope.

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

View file

@ -8,6 +8,7 @@ import os
import glob import glob
import hashlib import hashlib
import time import time
import re
HTTP200 = "200 OK" HTTP200 = "200 OK"
HTTP202 = "202 Accepted" HTTP202 = "202 Accepted"
@ -43,7 +44,7 @@ def addjob(req):
try: 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: except Exception as e:
title = "output" title = "output"
try: try: