Allow IDN labels for subdomains of top domains
A previous fix introduced a top domain list to prevent phishing attempts using IDN. That fix compares a domain against a top domain, removes a label, and checks again until only a single label is left. This is problematic because it assumes subdomains of top domains cannot be IDN. As a result, subdomains of top domains are not decoded as unicode. This CL fixes this problem by adding an extra test to check if the hostname is a top domain itself or a subdomain of a top domain. If true, it's not treated as a lookalike and decoded as unicode. Bug: 769547 Change-Id: Id3b0589128bce974f6789c4151738ad74ca0ba6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1320813Reviewed-by:Joe DeBlasio <jdeblasio@chromium.org> Reviewed-by:
Tommy Li <tommycli@chromium.org> Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Cr-Commit-Position: refs/heads/master@{#747860}
Showing
Please register or sign in to comment