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
|
@ -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
|
||||||
key = line.split('<')[1].split('>')[0]
|
key = line.split('<')[1].split('>')[0].lower()
|
||||||
if keys.count(key) == 0:
|
if keys.count(key) == 0:
|
||||||
keys.append(key)
|
keys.append(key)
|
||||||
return keys
|
return keys
|
||||||
|
|
|
@ -37,7 +37,6 @@ This is a combined work of many developers and contributors:
|
||||||
# To Do
|
# To Do
|
||||||
|
|
||||||
* clean up code
|
* clean up code
|
||||||
* rewrite templates for register-handler
|
|
||||||
* rewrite and improve installation instructions
|
* rewrite and improve installation instructions
|
||||||
* rewrite readme of gpg-mailgate-web in markdown
|
* rewrite readme of gpg-mailgate-web in markdown
|
||||||
* rename from gpg-mailgate to openpgp-s-mime-mailgate or something.....
|
* rename from gpg-mailgate to openpgp-s-mime-mailgate or something.....
|
||||||
|
|
|
@ -167,6 +167,7 @@ gpg_to = list()
|
||||||
ungpg_to = list()
|
ungpg_to = list()
|
||||||
|
|
||||||
for to in to_addrs:
|
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' ):
|
if to in keys and not ( cfg['default'].has_key('keymap_only') and cfg['default']['keymap_only'] == 'yes' ):
|
||||||
gpg_to.append( (to, to) )
|
gpg_to.append( (to, to) )
|
||||||
elif cfg.has_key('keymap') and cfg['keymap'].has_key(to):
|
elif cfg.has_key('keymap') and cfg['keymap'].has_key(to):
|
||||||
|
|
Loading…
Reference in New Issue