Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce48ea7

Browse files
committed
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
1 parent 6aa616b commit ce48ea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def getTargetUrls(self):
5959

6060
for match in self.__matches:
6161
if re.search("(.*?)\?(.+)", match, re.I):
62-
kb.targetUrls.add(( htmlunescape(match), None, None, None ))
62+
kb.targetUrls.add(( htmlunescape(htmlunescape(match)), None, None, None ))
6363

6464
def getCookie(self):
6565
"""

0 commit comments

Comments
 (0)