From 0f2206f68f044d90bb820f9b1f1ec610fea5df31 Mon Sep 17 00:00:00 2001 From: neersighted Date: Thu, 1 Mar 2012 22:50:47 -0800 Subject: [PATCH] fixed regex in urlparse.py to not parse commands, also made it respece paths --- plugins/urlparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/urlparse.py b/plugins/urlparse.py index e5121d5..e1d5328 100755 --- a/plugins/urlparse.py +++ b/plugins/urlparse.py @@ -18,7 +18,7 @@ def parse(match): except: return "fail" -@hook.regex(r'([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)+') +@hook.regex(r'(^[^\.])([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)\/(.*)') def urlparser(match, say=None): url = urlnorm.normalize(match.group().encode('utf-8')) if url[:7] != "http://":