diff options
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}) |