From 3839a6a5eb45a07065cef61b2bfe2c7f317c7b44 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 1 Apr 2012 14:27:11 -0700 Subject: [PATCH] Always put a leading 0x on keyids in HTML output links We didn't always put a leading 0x when outputting URLs as part of an index, which confuses some clients that try to autoparse returned key IDs. --- keyindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyindex.c b/keyindex.c index 4eedf1f..45606f0 100644 --- a/keyindex.c +++ b/keyindex.c @@ -53,7 +53,7 @@ int list_sigs(struct openpgp_packet_list *sigs, bool html) } if (html && uid != NULL) { printf("%s %08" PRIX64 + "search=0x%016" PRIX64 "\">%08" PRIX64 " " "%s\n", @@ -297,7 +297,7 @@ int key_index(struct openpgp_publickey *keys, bool verbose, bool fingerprint, if (html) { printf("pub %5d%c/%08" PRIX64 + "search=0x%016" PRIX64 "\">%08" PRIX64 " %04d/%02d/%02d ", length, typech, -- 2.30.2