We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c685c3 + 83666ad commit a51d841Copy full SHA for a51d841
1 file changed
fri/server/main.py
@@ -433,6 +433,11 @@ def download(dir):
433
if not download_file:
434
abort(400, description="Missing file parameter")
435
436
+ download_file = secure_filename(download_file)
437
+
438
+ if download_file == "":
439
+ abort(400, description="Invalid filename")
440
441
# Normalize the requested file path
442
safe_path = os.path.normpath(download_file)
443
0 commit comments