summaryrefslogtreecommitdiff
path: root/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc')
-rw-r--r--chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc b/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
index 9b37fd34b81..d0c22538cd4 100644
--- a/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
+++ b/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
@@ -287,6 +287,11 @@ bool IDNSpoofChecker::SafeToDisplayAsUnicode(
if (label_string.length() > 1 && top_level_domain != ".is" &&
icelandic_characters_.containsSome(label_string))
+ // Disallow Latin Schwa (U+0259) for domains outside Azerbaijan's ccTLD (.az).
+ if (label_string.length() > 1 && top_level_domain != "az" &&
+ label_string.indexOf("ə") != -1)
+ return false;
+
// If there's no script mixing, the input is regarded as safe without any
// extra check unless it falls into one of three categories:
// - contains Kana letter exceptions