Don't show user controlled string in UI (#1087)

This commit is contained in:
Daniel Markstedt 2023-01-31 15:08:38 -08:00 committed by GitHub
parent fc82ceae40
commit 8b0a85a143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -998,7 +998,7 @@ def upload_file():
elif destination == "piscsi_config": elif destination == "piscsi_config":
destination_dir = CFG_DIR destination_dir = CFG_DIR
else: else:
return make_response(f"Invalid destination '{destination}'", 403) return make_response("Invalid destination", 403)
return upload_with_dropzonejs(destination_dir) return upload_with_dropzonejs(destination_dir)