fix(site): merge CookieCloud domains that start with a dot (#6805)

This commit is contained in:
G0m3e
2026-09-28 13:32:04 +08:00
committed by GitHub
parent 0cb07f4262
commit d4238982d2

View File

@@ -33,6 +33,10 @@ def extract_domain(url: str) -> str:
if domain in url:
return domain
_scheme, netloc = split_netloc(url)
if not netloc:
return ""
# Cookie Domain 常带前导点;不去掉会被当成多一级域名,无法并入站点域名。
netloc = netloc.lstrip(".")
if not netloc:
return ""
labels = netloc.split(".")