Skip to content

Commit

Permalink
[BaseClassifier] Domain whitelist handling minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed Jun 16, 2021
1 parent e53e9bd commit 0e5b7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thug/Classifier/BaseClassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def add_filter(self, filter_file):

def discard_meta_domain_whitelist(self, url, values):
p_url = urlparse(url)
netloc = p_url.netloc.lower()
netloc = p_url.netloc.split(':')[0].lower() # Remove the port from netloc, if present

for value in values.split(','):
domain = value.lower().strip()
Expand Down

0 comments on commit 0e5b7f5

Please sign in to comment.