plugin: always canonicalize plugin names

Reported by Joe Doyle of Trail of Bits.
This commit is contained in:
Filippo Valsorda
2026-08-29 19:30:10 +02:00
parent 572b47c3e7
commit bebcffc2f3
3 changed files with 27 additions and 3 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ func NewIdentityWithoutData(name string, ui *ClientUI) (*Identity, error) {
return nil, fmt.Errorf("invalid plugin name: %q", name)
}
return &Identity{
name: name, encoding: s, ui: ui,
name: strings.ToLower(name), encoding: s, ui: ui,
}, nil
}