X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;h=4f8fee35d03dd70a9eef4e055f74e566b338b444;hp=36f1cc3d0e787383a1d58a78727cd6dbef558a95;hb=76d1b148de5785a608e6cb7968bea0d108166b0c;hpb=eed30e7939bd5f051ff7af072b802925d663641d diff --git a/ud-mailgate b/ud-mailgate index 36f1cc3..4f8fee3 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -100,7 +100,7 @@ DelItems = {"c": None, def make_hmac(str): F = open(PassDir+"/key-hmac","r"); - key = F.readline() + key = F.readline().strip() F.close(); return hmac.new(key, str, sha1_module).hexdigest