Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2024
1 parent 7c25d77 commit aa435f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fsd_utils/locale_selector/set_lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def __init__(self, app):
@staticmethod
def select_language(locale):

response = make_response(
redirect(request.referrer or "/", 302)
)
response = make_response(redirect(request.referrer or "/", 302))

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
LanguageSelector.set_language_cookie(locale, response)

return response

0 comments on commit aa435f1

Please sign in to comment.