diff --git a/app/routes.py b/app/routes.py index d0bfa3b..cd7926e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -140,10 +140,9 @@ def files(path): @app.route('/serve_file/') def serve_file(filepath): - full_path = os.path.realpath(filepath) if not filepath.startswith(app.config["BUTTERBOX_USB_PATH"]): redirect(url_for('files', path="")) - return send_file(full_path) + return send_file("/" + filepath) @app.route('/login', methods=['GET', 'POST']) def login():