diff options
-rw-r--r-- | chromium/components/url_formatter/idn_spoof_checker.cc | 2 | ||||
-rw-r--r-- | chromium/components/url_formatter/url_formatter_unittest.cc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/chromium/components/url_formatter/idn_spoof_checker.cc b/chromium/components/url_formatter/idn_spoof_checker.cc index 7bce3b676b2..c0449e0ae99 100644 --- a/chromium/components/url_formatter/idn_spoof_checker.cc +++ b/chromium/components/url_formatter/idn_spoof_checker.cc @@ -171,7 +171,7 @@ IDNSpoofChecker::IDNSpoofChecker() { // These Cyrillic letters look like Latin. A domain label entirely made of // these letters is blocked as a simplified whole-script-spoofable. cyrillic_letters_latin_alike_ = icu::UnicodeSet( - icu::UnicodeString::fromUTF8("[асԁеһіјӏорԛѕԝхуъЬҽпгѵѡ]"), status); + icu::UnicodeString::fromUTF8("[асԁеһіјӏорԗԛѕԝхуъЬҽпгѵѡ]"), status); cyrillic_letters_latin_alike_.freeze(); cyrillic_letters_ = diff --git a/chromium/components/url_formatter/url_formatter_unittest.cc b/chromium/components/url_formatter/url_formatter_unittest.cc index 249c92f5d10..6e37bf810af 100644 --- a/chromium/components/url_formatter/url_formatter_unittest.cc +++ b/chromium/components/url_formatter/url_formatter_unittest.cc @@ -381,6 +381,9 @@ const IDNTestCase idn_cases[] = { // музей (museum in Russian) has characters without a Latin-look-alike. {"xn--e1adhj9a.com", L"\x043c\x0443\x0437\x0435\x0439.com", true}, + // ѕсоԗе.com is Cyrillic with Latin lookalikes. + {"xn--e1ari3f61c.com", L"\x0455\x0441\x043e\x0517\x0435.com", false}, + // Combining Diacritic marks after a script other than Latin-Greek-Cyrillic {"xn--rsa2568fvxya.com", L"\xd55c\x0301\xae00.com", false}, // 한́글.com {"xn--rsa0336bjom.com", L"\x6f22\x0307\x5b57.com", false}, // 漢̇字.com |