fix(sftp-server): postgre cannot store control characters (#8188 close #8186)

This commit is contained in:
KirCute
2025-03-27 23:14:36 +08:00
committed by GitHub
parent 32890da29f
commit 6e13923225
3 changed files with 10 additions and 6 deletions

View File

@ -17,7 +17,6 @@ func CreateSSHPublicKey(k *model.SSHPublicKey) (error, bool) {
if err != nil {
return err, false
}
k.KeyStr = string(pubKey.Marshal())
k.Fingerprint = ssh.FingerprintSHA256(pubKey)
k.AddedTime = time.Now()
k.LastUsedTime = k.AddedTime