From bcbaaa82f44c071f18f6ddf9b59ab6aab0c6893e Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Fri, 29 Jul 2011 08:14:17 +0000 Subject: [PATCH] Make sure uid_email is a valid email address Signed-off-by: Luca Falavigna --- daklib/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daklib/queue.py b/daklib/queue.py index a44ad6d2..4e7a5e95 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1657,6 +1657,7 @@ class Upload(object): self.rejects.append("%s: deb contents timestamp check failed [%s: %s]" % (filename, sys.exc_type, sys.exc_value)) def check_if_upload_is_sponsored(self, uid_email, uid_name): + uid_email = '@'.join(uid_email.split('@')[:2]) if uid_email in [self.pkg.changes["maintaineremail"], self.pkg.changes["changedbyemail"]]: sponsored = False elif uid_name in [self.pkg.changes["maintainername"], self.pkg.changes["changedbyname"]]: -- 2.39.5