From ce48ea75d0a52cd92f2d883ea168abf422a18a17 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 3 Jan 2011 14:39:23 +0000 Subject: [PATCH] noticed that google search page sometimes contain double html escaped links - double htmlunescape solves the problem, while dealing no harm to single html escaped links --- lib/utils/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/google.py b/lib/utils/google.py index 207bc32c1..35752f13c 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -59,7 +59,7 @@ class Google: for match in self.__matches: if re.search("(.*?)\?(.+)", match, re.I): - kb.targetUrls.add(( htmlunescape(match), None, None, None )) + kb.targetUrls.add(( htmlunescape(htmlunescape(match)), None, None, None )) def getCookie(self): """