aboutsummaryrefslogtreecommitdiff
path: root/modules/title.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-30 15:15:20 +0100
committerGravatar jesopo2019-09-30 15:15:20 +0100
commitf306213cb8c622d65315f718ef2abb250d5093eb (patch)
tree64279996d6da87efdd89337c7d89c9a6a84c3901 /modules/title.py
parentuse ipaddress is_loopback etc to do better forbidden ranges (diff)
signature
'is_localhost()' -> 'host_permitted()'
Diffstat (limited to 'modules/title.py')
-rw-r--r--modules/title.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/title.py b/modules/title.py
index ab4c3b45..614d0bbf 100644
--- a/modules/title.py
+++ b/modules/title.py
@@ -21,8 +21,8 @@ class Module(ModuleManager.BaseModule):
url = "http://%s" % url
hostname = urllib.parse.urlparse(url).hostname
- if utils.http.is_localhost(hostname):
- self.log.warn("tried to get title of localhost: %s", [url])
+ if not utils.http.host_permitted(hostname):
+ self.log.warn("Attempted to get forbidden host: %s", [url])
return -1, None
try: