diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-08-31 12:09:07 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-08-31 12:09:07 +0300 |
commit | 6452a7beed18072719b27239b95cb7d081d81dc3 (patch) | |
tree | dfe6c74d6106b4ecfc331fecc566376fcea4d3d9 /core/views/drawings.py | |
parent | 5c667c182600ef58554be6bbeb54b8c0561cbcd4 (diff) | |
download | troggle-6452a7beed18072719b27239b95cb7d081d81dc3.tar.gz troggle-6452a7beed18072719b27239b95cb7d081d81dc3.tar.bz2 troggle-6452a7beed18072719b27239b95cb7d081d81dc3.zip |
fix green block for survex files on table
Diffstat (limited to 'core/views/drawings.py')
-rw-r--r-- | core/views/drawings.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |