mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 21:54:04 +01:00
d9442b09b5
Fixes #30235
If the key id "front" byte has a single digit, `%X` is missing the 0
prefix.
` 38D1A3EADDBEA9C` instead of
`038D1A3EADDBEA9C`
When using the `IssuerFingerprint` slice `%X` is enough but I changed it
to `%016X` too to be consistent.
(cherry picked from commit eb505b128c7b9b2459f2a5d20b5740017125178b)
Conflicts:
- models/asymkey/gpg_key_commit_verification.go
Ported the change to models/asymkey/gpg_key_object_verification.go
(cherry picked from commit
|
||
---|---|---|
.. | ||
error.go | ||
gpg_key.go | ||
gpg_key_add.go | ||
gpg_key_commit_verification.go | ||
gpg_key_common.go | ||
gpg_key_import.go | ||
gpg_key_list.go | ||
gpg_key_object_verification.go | ||
gpg_key_tag_verification.go | ||
gpg_key_test.go | ||
gpg_key_verify.go | ||
main_test.go | ||
ssh_key.go | ||
ssh_key_authorized_keys.go | ||
ssh_key_authorized_principals.go | ||
ssh_key_deploy.go | ||
ssh_key_fingerprint.go | ||
ssh_key_object_verification.go | ||
ssh_key_object_verification_test.go | ||
ssh_key_parse.go | ||
ssh_key_principals.go | ||
ssh_key_test.go | ||
ssh_key_verify.go |