mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-04 07:07:16 +00:00
plugin: always canonicalize plugin names
Reported by Joe Doyle of Trail of Bits.
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user