fix url encoding in index

This commit is contained in:
n 2023-01-22 23:46:08 +01:00
parent 3770a9ea84
commit c28e50a103
Signed by: n
GPG key ID: 510227DD6C502CE3

View file

@ -42,7 +42,7 @@ for x in myresult:
filename = filename_regex.findall(x[0])[0] filename = filename_regex.findall(x[0])[0]
f = open("index.gmi", "a") f = open("index.gmi", "a")
f.write("=> %s/%s.gmi %s - %s\n" % (path, filename, path.replace("/","-"), x[1])) f.write("=> %s/%s.gmi %s - %s\n" % (path, quote(quote(filename)), path.replace("/","-"), x[1]))
f.close() f.close()
try: try: