Skip to content

Escape sequence injection in Formatting SQL query (cli fromat) #84

@nijel

Description

@nijel

Similar to #83, but for CLI output.

$ q=`echo -e "select 'text\e[33mcolor-inj' from tbl"`
$ ./bin/highlight-query --query "$q"
SELECT
  'textcolor-inj'
FROM
  tbl

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions