mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-06 14:52:50 +08:00
Potential fix for code scanning alert no. 47: Incomplete URL substring sanitization (#497)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -948,7 +948,7 @@ async def check_bili_fav_list(url):
|
||||
path = parsed_url.path
|
||||
# 提取查询参数
|
||||
query_params = parse_qs(parsed_url.query)
|
||||
if "space.bilibili.com" in url:
|
||||
if parsed_url.hostname == "space.bilibili.com":
|
||||
if "/favlist" in path:
|
||||
lid = query_params.get("fid", [None])[0]
|
||||
type = query_params.get("ctype", [None])[0]
|
||||
|
||||
Reference in New Issue
Block a user