From: Luca Falavigna Date: Fri, 29 Jul 2011 08:14:17 +0000 (+0000) Subject: Make sure uid_email is a valid email address X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bcbaaa82f44c071f18f6ddf9b59ab6aab0c6893e;p=dak.git Make sure uid_email is a valid email address Signed-off-by: Luca Falavigna --- 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"]]: