diff options
author | ubq323 <ubq323@ubq323.website> | 2022-02-01 17:41:56 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-02-01 17:41:56 +0000 |
commit | 6ebb3c20e178daa87d28c6fde40ce34e8f119b74 (patch) | |
tree | c3c6761567c110d38df08cceff0ac6cde8b50b33 | |
parent | 3fdb818134d494027c75fd3bd3d32a5f4af62d41 (diff) |
fix bug creating arbitrarily long query strings when repeatedly clicking login or register buttons
-rw-r--r-- | apioforum/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apioforum/__init__.py b/apioforum/__init__.py index 86e5ff9..a7d70c0 100644 --- a/apioforum/__init__.py +++ b/apioforum/__init__.py @@ -49,7 +49,7 @@ def create_app(): @app.context_processor def path_for_next(): p = request.path - if len(request.query_string) > 0: + if len(request.query_string) > 0 and not p.startswith("/auth"): p += "?" + request.query_string.decode("utf-8") return dict(path_for_next=p) |