forked from forgejo/forgejo
Backport #30174 by @KN4CK3R Fixes #30119 Include the encoding in the signature payload. before  after  Co-authored-by: KN4CK3R <admin@oldschoolhack.me> (cherry picked from commit 19443a28b7eb74016c956ff74f85c9b0ce162ed5)
This commit is contained in:
parent
7ac46f1151
commit
f4a2f439a9
3 changed files with 75 additions and 0 deletions
|
@ -47,6 +47,12 @@ func convertPGPSignature(c *object.Commit) *ObjectSignature {
|
|||
return nil
|
||||
}
|
||||
|
||||
if c.Encoding != "" && c.Encoding != "UTF-8" {
|
||||
if _, err = fmt.Fprintf(&w, "\nencoding %s\n", c.Encoding); err != nil {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if _, err = fmt.Fprintf(&w, "\n\n%s", c.Message); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue