[stable9] Use paramterized parameter for \OC\SystemTag\SystemTagManager
$nameSearchPattern was passed in and directly appended to the SQL query. Luckily the code path isn't reached anywhere in Nextcloud or the included apps.
This commit is contained in:
parent
531e69947f
commit
ce70ea3501
|
@ -124,10 +124,7 @@ class SystemTagManager implements ISystemTagManager {
|
||||||
|
|
||||||
if (!empty($nameSearchPattern)) {
|
if (!empty($nameSearchPattern)) {
|
||||||
$query->andWhere(
|
$query->andWhere(
|
||||||
$query->expr()->like(
|
$query->expr()->like('name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($nameSearchPattern) . '%'))
|
||||||
'name',
|
|
||||||
$query->expr()->literal('%' . $this->connection->escapeLikeParameter($nameSearchPattern). '%')
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue