mirror of
https://gitee.com/gitea/gitea
synced 2025-12-25 09:46:34 +08:00
models: mirror fix on #964
This commit is contained in:
@@ -130,7 +130,6 @@ func extractTypeFromBase64Key(key string) (string, error) {
|
||||
|
||||
// Parse any key string in openssh or ssh2 format to clean openssh string (rfc4253)
|
||||
func ParseKeyString(content string) (string, error) {
|
||||
|
||||
// Transform all legal line endings to a single "\n"
|
||||
s := strings.Replace(strings.Replace(strings.TrimSpace(content), "\r\n", "\n", -1), "\r", "\n", -1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user