Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fixed bug handling e-mail addresses as unicode.

smicallefecd30352ac57
diff --git a/modules/sfp_email.py b/modules/sfp_email.py
index 48f0d5a1..68f558b0 100644
--- a/modules/sfp_email.py
+++ b/modules/sfp_email.py
@@ -80,7 +80,8 @@ class sfp_email(SpiderFootPlugin):
continue
self.sf.info("Found e-mail address: " + match)
- evt = SpiderFootEvent("EMAILADDR", match, self.__name__, parentEvent)
+ mail = unicode(match, 'utf-8', errors='replace')
+ evt = SpiderFootEvent("EMAILADDR", mail, self.__name__, parentEvent)
self.notifyListeners(evt)
return None