fix: sanitize peer display names
Docker / Build and Push (push) Canceled after 0s
github-pages / deploy (push) Canceled after 0s
Test / make test (push) Canceled after 0s
Docker / release (push) Canceled after 0s

This commit is contained in:
Christoph
2026-12-03 14:09:30 +01:00
parent 5dda7443b7
commit 8ec46497f0
+1 -1
View File
@@ -136,7 +136,7 @@ func (p *Peer) GenerateDisplayName(prefix string) {
// OverwriteUserEditableFields overwrites the user-editable fields of the peer with the values from the userPeer
func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) {
p.DisplayName = userPeer.DisplayName
p.DisplayName = SanitizeString(userPeer.DisplayName, 255)
if cfg.Core.EditableKeys {
p.Interface.PublicKey = userPeer.Interface.PublicKey
p.Interface.PrivateKey = userPeer.Interface.PrivateKey