]> err.no Git - dak/commitdiff
Make sure uid_email is a valid email address
authorLuca Falavigna <dktrkranz@debian.org>
Fri, 29 Jul 2011 08:14:17 +0000 (08:14 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Wed, 10 Aug 2011 22:28:35 +0000 (22:28 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
daklib/queue.py

index a44ad6d2793246364d4e90b5d867b78cccd36e18..4e7a5e95531316dd8b76348f97435e631b237196 100755 (executable)
@@ -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"]]: