aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-07-06 22:39:34 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-07-06 22:39:34 +0200
commitdc21a38a8598f1efe2ee43ec5648b49f7b7853fd (patch)
tree60c220a1d9be98618b38db2597427e860522297c /lib
parent21b5533b83352f7a1a2c4ed9359d0af80847d1b8 (diff)
downloadnextcloud-server-dc21a38a8598f1efe2ee43ec5648b49f7b7853fd.tar.gz
nextcloud-server-dc21a38a8598f1efe2ee43ec5648b49f7b7853fd.zip
Use named parameter instead of direct value for system tags search param (#25380)
Diffstat (limited to 'lib')
-rw-r--r--lib/private/SystemTag/SystemTagManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php
index 2b0ef03e471..7055fafbf24 100644
--- a/lib/private/SystemTag/SystemTagManager.php
+++ b/lib/private/SystemTag/SystemTagManager.php
@@ -142,7 +142,7 @@ class SystemTagManager implements ISystemTagManager {
$query->andWhere(
$query->expr()->like(
'name',
- $query->expr()->literal('%' . $this->connection->escapeLikeParameter($nameSearchPattern). '%')
+ $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($nameSearchPattern). '%')
)
);
}