From 311615c4ba5ec130df3ff43539c09a2dfe754f8d Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 31 May 2009 17:53:52 +0200 Subject: [PATCH] always make sure that given email is really an email --- libraries/entropy/services/ugc/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/entropy/services/ugc/commands.py b/libraries/entropy/services/ugc/commands.py index d0ab3dea1..307faa7cd 100644 --- a/libraries/entropy/services/ugc/commands.py +++ b/libraries/entropy/services/ugc/commands.py @@ -795,6 +795,8 @@ class UGC(SocketCommands): subject = 'Entropy Error Reporting Handler' destination_email = 'entropy.errors@sabayon.org' sender_email = mydict.get('email', 'anonymous@sabayon.org') + if not self.entropyTools.is_valid_email(sender_email): + sender_email = 'anonymous@sabayon.org' keys_to_file = ['errordata', 'processes', 'lspci', 'dmesg', 'locale'] # call it over