Skip to content

Commit

Permalink
Fixes #90
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Apr 13, 2019
1 parent e3ebd7a commit d66b6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cms_scanner/target/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def invalid_domains
end

def <<(element)
if PublicSuffix.valid?(element)
if PublicSuffix.valid?(element, ignore_private: true)
domains << PublicSuffix.parse(element, ignore_private: true)
else
invalid_domains << element
Expand All @@ -59,7 +59,7 @@ def <<(element)

# @return [ Boolean ] Wether or not the host is in the scope
def include?(host)
if PublicSuffix.valid?(host)
if PublicSuffix.valid?(host, ignore_private: true)
domain = PublicSuffix.parse(host, ignore_private: true)

domains.each { |d| return true if domain.match(d) }
Expand Down

0 comments on commit d66b6cc

Please sign in to comment.