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

This commit is contained in:
Miroslav Stampar 2011-01-03 14:39:23 +00:00
parent 6aa616bd0d
commit ce48ea75d0

View File

@ -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):
"""