From 386044d081d6bf9d1cf7dc81de88cfe10a9d03cd Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 23 Oct 2023 22:32:56 -0400 Subject: [PATCH] Fix colons and backslashes in gpg key names being interpreted as their hexadecimal equivalents Former-commit-id: 98a19896d872423ff771e4b7bb5014397b63e889 Former-commit-id: 940178d578742aa457b985df4d7b231324aba0d9 --- lib/stweak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stweak.py b/lib/stweak.py index 0f2c283..e49e40f 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -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: