diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2024-03-29 22:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 21:55:10 +0000 |
commit | b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e (patch) | |
tree | b10cc4c44873179343e063392379f522e9c8c99a /modules/git/commit_reader.go | |
parent | f31a88d3cb64106e75bbe8a3502856db71dbacfc (diff) | |
download | gitea-b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e.tar.gz gitea-b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e.zip |
Include encoding in signature payload (#30174)
Fixes #30119
Include the encoding in the signature payload.
before

after

Diffstat (limited to 'modules/git/commit_reader.go')
-rw-r--r-- | modules/git/commit_reader.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go index 4809d6c7ed..56c41dc473 100644 --- a/modules/git/commit_reader.go +++ b/modules/git/commit_reader.go @@ -84,6 +84,8 @@ readLoop: commit.Committer = &Signature{} commit.Committer.Decode(data) _, _ = payloadSB.Write(line) + case "encoding": + _, _ = payloadSB.Write(line) case "gpgsig": fallthrough case "gpgsig-sha256": // FIXME: no intertop, so only 1 exists at present. |