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.
1 parent 0467ce5 commit 83666adCopy full SHA for 83666ad
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