From f8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 5 Jun 2020 00:38:05 +0100 Subject: [PATCH] Bugfix for capitalised filename extensions --- urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.*)$', '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[^/]+)/$', view_surveys.surveyscansfolder, name="surveyscansfolder"), - url(r'^survey_scans/(?P[^/]+)/(?P[^/]+(?:png|jpg|jpeg))$', + url(r'^survey_scans/(?P[^/]+)/(?P[^/]+(?:png|jpg|pdf|jpeg|PNG|JPG|PDF|JPEG))$', view_surveys.surveyscansingle, name="surveyscansingle"), url(r'^tunneldata/$', view_surveys.tunneldata, name="tunneldata"),