summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-05 00:38:05 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-05 00:38:05 +0100
commitf8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d (patch)
tree132d983a56c6db2d6f100d5118d1f09f67e0c9dc /urls.py
parent681bfcb4c452fd24233a2304ad8d9d1a416036fc (diff)
downloadtroggle-f8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d.tar.gz
troggle-f8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d.tar.bz2
troggle-f8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d.zip
Bugfix for capitalised filename extensions
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index ebce032..c1917f1 100644
--- a/urls.py
+++ b/urls.py
@@ -122,7 +122,7 @@ actualurlpatterns = patterns('',
#(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.SURVEY_SCANS, 'show_indexes':True}),
url(r'^survey_scans/$', view_surveys.surveyscansfolders, name="surveyscansfolders"),
url(r'^survey_scans/(?P<path>[^/]+)/$', view_surveys.surveyscansfolder, name="surveyscansfolder"),
- url(r'^survey_scans/(?P<path>[^/]+)/(?P<file>[^/]+(?:png|jpg|jpeg))$',
+ url(r'^survey_scans/(?P<path>[^/]+)/(?P<file>[^/]+(?:png|jpg|pdf|jpeg|PNG|JPG|PDF|JPEG))$',
view_surveys.surveyscansingle, name="surveyscansingle"),
url(r'^tunneldata/$', view_surveys.tunneldata, name="tunneldata"),