diff options
author | Michael Muré <batolettre@gmail.com> | 2021-04-17 17:40:11 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-04-17 17:40:11 +0200 |
commit | 51a2c85954e77068c6afbb4ca54159086220aefd (patch) | |
tree | 9b424181369a67f69502a27186bd266a19a28506 /commands/label_rm.go | |
parent | 62fb09a53cc626ac581f33b466a1cdf14eb6ed89 (diff) | |
download | git-bug-51a2c85954e77068c6afbb4ca54159086220aefd.tar.gz |
make sure every text input is safe and validated
fix #630
Diffstat (limited to 'commands/label_rm.go')
-rw-r--r-- | commands/label_rm.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/label_rm.go b/commands/label_rm.go index f59ec02d..9fb3e096 100644 --- a/commands/label_rm.go +++ b/commands/label_rm.go @@ -4,6 +4,7 @@ import ( "github.com/spf13/cobra" _select "github.com/MichaelMure/git-bug/commands/select" + "github.com/MichaelMure/git-bug/util/text" ) func newLabelRmCommand() *cobra.Command { @@ -30,7 +31,7 @@ func runLabelRm(env *Env, args []string) error { removed := args - changes, _, err := b.ChangeLabels(nil, removed) + changes, _, err := b.ChangeLabels(nil, text.CleanupOneLineArray(removed)) for _, change := range changes { env.out.Println(change) |