aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-08 12:54:06 +0100
committerGravatar jesopo2019-07-08 12:54:06 +0100
commit078681eddffb3a29b3136ad12ec01bfa25870124 (patch)
treeefa29615c6ec5b7cd9105167e7924c1358a0070e /modules
parentswitch rss.py to use utils.http.request_many (diff)
signature
add missing schema in utils.http.sanitise_url, use in rss.py
Diffstat (limited to 'modules')
-rw-r--r--modules/rss.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rss.py b/modules/rss.py
index e8c45131..bce673aa 100644
--- a/modules/rss.py
+++ b/modules/rss.py
@@ -103,7 +103,7 @@ class Module(ModuleManager.BaseModule):
if not len(event["args_split"]) > 1:
raise utils.EventError("Please provide a URL")
- url = event["args_split"][1]
+ url = utils.http.url_sanitise(event["args_split"][1])
if url in rss_hooks:
raise utils.EventError("That URL is already being watched")
@@ -119,7 +119,7 @@ class Module(ModuleManager.BaseModule):
if not len(event["args_split"]) > 1:
raise utils.EventError("Please provide a URL")
- url = event["args_split"][1]
+ url = utils.http.url_sanitise(event["args_split"][1])
if not url in rss_hooks:
raise utils.EventError("I'm not watching that URL")
rss_hooks.remove(url)