From b1964b2313424f6184f4ca5ba7a184156dd5e753 Mon Sep 17 00:00:00 2001 From: David Arendsen Date: Wed, 27 Nov 2024 13:47:42 +0100 Subject: [PATCH] Rename MOZZILLA_DISALLOWED_CHARACTERS to MOZILLA_* --- .../detector/rule/disallowed_characters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/homographic_spoofing/detector/rule/disallowed_characters.rb b/lib/homographic_spoofing/detector/rule/disallowed_characters.rb index fe2b45b..fd9b283 100644 --- a/lib/homographic_spoofing/detector/rule/disallowed_characters.rb +++ b/lib/homographic_spoofing/detector/rule/disallowed_characters.rb @@ -2,7 +2,7 @@ class HomographicSpoofing::Detector::Rule::DisallowedCharacters < HomographicSpoofing::Detector::Rule::Base class << self # See http://kb.mozillazine.org/Network.IDN.blacklist_chars - MOZZILLA_DISALLOWED_CHARACTERS = Set[ + MOZILLA_DISALLOWED_CHARACTERS = Set[ "\u0020", # Space "\u00a0", # No-break space "\u00bc", # Vulgar fraction one quarter @@ -124,7 +124,7 @@ class << self ] def allowed_chars_set - @@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZZILLA_DISALLOWED_CHARACTERS) + @@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZILLA_DISALLOWED_CHARACTERS) end private