diff --git a/thug/Classifier/BaseClassifier.py b/thug/Classifier/BaseClassifier.py index f4d607702a..0ed704a9e2 100644 --- a/thug/Classifier/BaseClassifier.py +++ b/thug/Classifier/BaseClassifier.py @@ -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()