Skip to content

Commit

Permalink
fixed sql injection in translation api (#14952)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Apr 20, 2023
1 parent 707cff5 commit 7e32cc2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -650,7 +650,7 @@ protected function getGridFilterCondition(Request $request, $tableName, $languag
}

if ($field && $value) {
$condition = $field . ' ' . $operator . ' ' . $db->quote($value);
$condition = $db->quoteIdentifier($field) . ' ' . $operator . ' ' . $db->quote($value);

if ($languageMode) {
$conditions[$fieldname] = $condition;
Expand Down

0 comments on commit 7e32cc2

Please sign in to comment.