From a0e3d75f3e59c373317b9a58e9d4c2dd2011a02f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 01:37:39 +0200 Subject: [PATCH] same as last commit --- files/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index f5e88bf906..3c62b99d3a 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -105,8 +105,9 @@ def before_request(): g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua request.path = request.path.rstrip('/') - request.full_path = request.full_path.rstrip('?').rstrip('/') if not request.path: request.path = '/' + request.full_path = request.full_path.rstrip('?').rstrip('/') + if not request.full_path: request.full_path = '/' @app.after_request def after_request(response):