same as last commit

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-05 01:37:39 +02:00
parent 92a134c28f
commit a0e3d75f3e
1 changed files with 2 additions and 1 deletions

View File

@ -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):