From 972635a65c86025f2f8d05217e93f634b7ed067e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 20 May 2013 16:55:44 +0200 Subject: [PATCH] Handling question marks in scan file names --- apps/wiki/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wiki/views.py b/apps/wiki/views.py index f7078922..14817348 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -210,7 +210,7 @@ def gallery(request, directory): smart_unicode(directory)) def map_to_url(filename): - return "%s/%s" % (base_url, smart_unicode(filename)) + return ("%s/%s" % (base_url, smart_unicode(filename))).replace('?', '%3f') def is_image(filename): return os.path.splitext(f)[1].lower() in (u'.jpg', u'.jpeg', u'.png') -- 2.20.1