From 0e5b7f5206e05890e5ae8ba8a7655f73d350f375 Mon Sep 17 00:00:00 2001 From: Angelo Dell'Aera Date: Wed, 16 Jun 2021 11:22:48 +0200 Subject: [PATCH] [BaseClassifier] Domain whitelist handling minor bug fix --- thug/Classifier/BaseClassifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()