diff --git a/modules/sfp_searchcode.py b/modules/sfp_searchcode.py index abecc8ad46..8ca72cae97 100644 --- a/modules/sfp_searchcode.py +++ b/modules/sfp_searchcode.py @@ -165,8 +165,13 @@ def handleEvent(self, event): self.notifyListeners(evt) self.results[email] = True - links = self.sf.extractUrls(str(results)) - for link in links: + links = set() + for result in results: + if 'lines' in result: + for line in result['lines']: + links.update(self.sf.extractUrls(result['lines'][line])) + + for link in list(links): if link in self.results: continue