From 6452a7beed18072719b27239b95cb7d081d81dc3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 31 Aug 2022 12:09:07 +0300 Subject: fix green block for survex files on table --- core/views/drawings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/drawings.py') diff --git a/core/views/drawings.py b/core/views/drawings.py index 5e60130..93a5573 100644 --- a/core/views/drawings.py +++ b/core/views/drawings.py @@ -42,7 +42,7 @@ def dwgfilesingle(request, path): webpage /dwgupload/... if the user types the filename into the browser bar. Could be a problem? Should we validate using uploads.py dwgvaliddisp() here too? ''' - tfile = Path(settings.DRAWINGS_DATA, path) + tfile = Path(settings.DRAWINGS_DATA, path.replace(":","#")) if not tfile.is_file(): message = f'Drawing file not found in filesystem at \'{path}\' .' return render(request, 'errors/generic.html', {'message': message}) -- cgit v1.2.3