From 27aa772ef5472bb4248c6f9d9ccfa7117db7bb67 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sat, 22 Mar 2014 02:09:07 +0100 Subject: [PATCH] Escape the base URL before adding it to the regexp --- weboob/tools/browser2/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/browser2/page.py b/weboob/tools/browser2/page.py index 59154893..0015159b 100644 --- a/weboob/tools/browser2/page.py +++ b/weboob/tools/browser2/page.py @@ -130,7 +130,7 @@ class URL(object): for regex in self.urls: if regex.startswith('/'): - regex = base + regex + regex = re.escape(base) + regex m = re.match(regex, url) if m: return m