From 61d737ee504ad47366575f104122eaa6d01c15ec Mon Sep 17 00:00:00 2001 From: Tim Tomes Date: Mon, 20 May 2024 15:53:57 -0400 Subject: [PATCH] Fixed a bug introduced by 56ab00b that broke the mobile PwnedHub page. --- pwnedhub/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnedhub/__init__.py b/pwnedhub/__init__.py index 41f1e2d..d515f27 100644 --- a/pwnedhub/__init__.py +++ b/pwnedhub/__init__.py @@ -49,7 +49,7 @@ def markdown_filter(data): @app.before_request def render_mobile(): if any(x in request.user_agent.string.lower() for x in ['android', 'iphone', 'ipad']): - if not request.endpoint.startswith('static'): + if not request.endpoint in ('static', 'common.static'): return render_template('mobile.html') @app.before_request