Bugfix for commit before:

Make check for keys in keymap case insensitive
This commit is contained in:
fkrone 2015-02-14 16:03:30 +01:00
parent e2ef883ec2
commit 99a1108338
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def public_keys( keyhome ):
if line[0:3] == 'uid' or line[0:3] == 'pub': if line[0:3] == 'uid' or line[0:3] == 'pub':
if ('<' not in line or '>' not in line): if ('<' not in line or '>' not in line):
continue continue
email = line.split('<')[1].split('>')[0] email = line.split('<')[1].split('>')[0].lower()
fingerprint = line.split(':')[4] fingerprint = line.split(':')[4]
keys[fingerprint] = email keys[fingerprint] = email
return keys return keys