Fixing critical bug: looking up email addresses for PGP encryption in keychain was done case sensitive
This commit is contained in:
parent
f7e3b16069
commit
0b503fa616
3 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ def public_keys( keyhome ):
|
|||
if line[0:3] == 'uid' or line[0:3] == 'pub':
|
||||
if ('<' not in line or '>' not in line):
|
||||
continue
|
||||
key = line.split('<')[1].split('>')[0]
|
||||
key = line.split('<')[1].split('>')[0].lower()
|
||||
if keys.count(key) == 0:
|
||||
keys.append(key)
|
||||
return keys
|
||||
|
|
|
@ -37,7 +37,6 @@ This is a combined work of many developers and contributors:
|
|||
# To Do
|
||||
|
||||
* clean up code
|
||||
* rewrite templates for register-handler
|
||||
* rewrite and improve installation instructions
|
||||
* rewrite readme of gpg-mailgate-web in markdown
|
||||
* rename from gpg-mailgate to openpgp-s-mime-mailgate or something.....
|
||||
|
|
|
@ -167,6 +167,7 @@ gpg_to = list()
|
|||
ungpg_to = list()
|
||||
|
||||
for to in to_addrs:
|
||||
to = to.lower()
|
||||
if to in keys and not ( cfg['default'].has_key('keymap_only') and cfg['default']['keymap_only'] == 'yes' ):
|
||||
gpg_to.append( (to, to) )
|
||||
elif cfg.has_key('keymap') and cfg['keymap'].has_key(to):
|
||||
|
|
Loading…
Reference in a new issue