Merge pull request #299 from nextcloud/master-use-parameterized-query
[master] Use paramterized parameter for \OC\SystemTag\SystemTagManager
This commit is contained in:
commit
152c1d414e
|
@ -140,10 +140,7 @@ class SystemTagManager implements ISystemTagManager {
|
|||
|
||||
if (!empty($nameSearchPattern)) {
|
||||
$query->andWhere(
|
||||
$query->expr()->like(
|
||||
'name',
|
||||
$query->expr()->literal('%' . $this->connection->escapeLikeParameter($nameSearchPattern). '%')
|
||||
)
|
||||
$query->expr()->like('name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($nameSearchPattern) . '%'))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue