mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Backport #30174 by @KN4CK3R Fixes #30119 Include the encoding in the signature payload. before  after  --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
		| @@ -47,6 +47,12 @@ func convertPGPSignature(c *object.Commit) *CommitGPGSignature { | ||||
| 		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 | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user