Skip to content

Commit

Permalink
Update lib/Db/Row2Mapper.php
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Härtl <[email protected]>
Signed-off-by: Florian <[email protected]>
  • Loading branch information
Florian and juliusknorr authored Jan 3, 2024
1 parent 8095e8c commit bf889fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/Row2Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private function getFilterExpression(IQueryBuilder $qb, Column $column, string $
case 'ends-with':
return $qb2->andWhere($qb->expr()->like('value', $qb->createNamedParameter($value.'%', $paramType)));
case 'contains':
return $qb2->andWhere($qb->expr()->like('value', $qb->createNamedParameter('%'.$value.'%', $paramType)));
return $qb2->andWhere($qb->expr()->like('value', $qb->createNamedParameter('%'.$this->db->escapeLikeParameter($value).'%', $paramType)));
case 'is-equal':
return $qb2->andWhere($qb->expr()->eq('value', $qb->createNamedParameter($value, $paramType)));
case 'is-greater-than':
Expand Down

0 comments on commit bf889fa

Please sign in to comment.