Skip to content

Commit

Permalink
Merge pull request from GHSA-vjph-r677-6pcc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 7, 2024
1 parent f946fa5 commit fd93c6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/api_automation.php
Expand Up @@ -1804,7 +1804,7 @@ function build_graph_object_sql_having($rule, $filter) {
$i = 0;

foreach ($field_names as $column) {
$sql_having .= ($i == 0 ? '':' OR ') . '`' . implode('`.`', explode('.', $column['field_name'])) . '`' . ' LIKE "%' . $filter . '%"';
$sql_having .= ($i == 0 ? '':' OR ') . '`' . implode('`.`', explode('.', $column['field_name'])) . '`' . ' LIKE ' . db_qstr('%' . $filter . '%');
$i++;
}

Expand Down Expand Up @@ -5406,4 +5406,3 @@ function automation_validate_import_columns($table, &$data, &$debug_data) {

return true;
}

0 comments on commit fd93c6e

Please sign in to comment.