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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user