From: Jonathan McDowell Date: Sun, 1 Apr 2012 21:27:11 +0000 (-0700) Subject: Always put a leading 0x on keyids in HTML output links X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/3839a6a5eb45a07065cef61b2bfe2c7f317c7b44 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. --- 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,