mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Fix colons and backslashes in gpg key names being interpreted as their hexadecimal equivalents
Former-commit-id: 98a19896d872423ff771e4b7bb5014397b63e889 Former-commit-id: 940178d578742aa457b985df4d7b231324aba0d9
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ def gpg_config():
|
||||
stdout=PIPE, text=True).stdout.splitlines() if _item.startswith('uid')]
|
||||
_named_uid_list = []
|
||||
for _uid in _uid_list:
|
||||
_named_uid_list.append(_uid.split(':')[9])
|
||||
_named_uid_list.append(_uid.split(':')[9].replace('\\x3a', ':').replace('\\x5c', '\\'))
|
||||
_named_uid_list.append('auto-generate')
|
||||
_gpg_id_sel = curses_radio(_named_uid_list, 'gpg key selection')
|
||||
if _gpg_id_sel == len(_named_uid_list)-1:
|
||||
|
||||
Reference in New Issue
Block a user