Skip to content

Commit

Permalink
fix: nickname escape
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 21, 2024
1 parent 636025f commit 338e85f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/auth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import html
import time
from typing import Any
from urllib.parse import urlencode
Expand Down Expand Up @@ -127,7 +128,7 @@ async def callback(code: str, request: Request) -> Redirect:
""",
user_id,
user["username"],
user["nickname"],
html.unescape(user["nickname"]),
)

back_to = request.session.get("backTo", "/")
Expand Down

0 comments on commit 338e85f

Please sign in to comment.