Skip to content

Commit

Permalink
Sanitize command
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Dec 2, 2021
1 parent 689fc87 commit 6f4c12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/info_schema_processlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (ScrapeProcesslist) Scrape(ctx context.Context, db *sql.DB, ch chan<- prome
if err != nil {
return err
}
command = strings.ToLower(command)
command = sanitizeState(command)
state = sanitizeState(state)
if host == "" {
host = "blank"
Expand Down

0 comments on commit 6f4c12b

Please sign in to comment.