Skip to content

Commit

Permalink
fix(filter box): replace freeform where clause with ilike (#14900)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Jun 4, 2021
1 parent 004a6d9 commit 20b86f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset-frontend/src/visualizations/FilterBox/FilterBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ class FilterBox extends React.PureComponent {
? [
{
clause: 'WHERE',
comparator: null,
expressionType: 'SQL',
// TODO: Evaluate SQL Injection risk
sqlExpression: `lower(${key}) like '%${input}%'`,
expressionType: 'SIMPLE',
subject: key,
operator: 'ILIKE',
comparator: `%${input}%`,
},
]
: null,
Expand Down

0 comments on commit 20b86f8

Please sign in to comment.