Class: HomographicSpoofing::Detector::Rule::Local::DotAtomText
- Inherits:
-
Base
- Object
- Base
- HomographicSpoofing::Detector::Rule::Local::DotAtomText
- Defined in:
- lib/homographic_spoofing/detector/rule/local/dot_atom_text.rb
Overview
See www.unicode.org/reports/tr39/#Email_Security_Profiles dot-atom-text.
Instance Method Summary collapse
Instance Method Details
#attack_detected? ⇒ Boolean
3 4 5 6 7 8 9 |
# File 'lib/homographic_spoofing/detector/rule/local/dot_atom_text.rb', line 3 def attack_detected? if invalid_dot_sequence? true elsif label_no_dots.present? !valid_start_sequence? || contains_invalid_char? end end |