2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 00:17:07 +00:00

fix green block for survex files on table

This commit is contained in:
Philip Sargent
2022-08-31 12:09:07 +03:00
parent 5c667c1826
commit 6452a7beed
5 changed files with 36 additions and 13 deletions

View File

@@ -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})