fix: a listed site ending in a dot gets the phishing warning (closes #534) #546

Merged
clawbot merged 1 commits from issue-534-trailing-dot-phishing into next 2026-10-14 10:48:41 +02:00
1 Commits
Author SHA1 Message Date
sneak 6cf1965edd fix: a listed site ending in a dot gets the phishing warning (closes #534)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
The blocklist check hashed the hostname as the page gave it, so
"myetheywallet.com." and every subdomain written that way hashed
differently from the listed "myetheywallet.com" and opened approval
prompts with no warning. The browser and DNS treat both spellings as
one host. hostnameVariants() now drops one trailing dot before
building the hostname and its parent domains, so the check sees the
name the list holds.

Model: opus-5-5
2026-10-14 06:33:58 +00:00