diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-07-06 22:39:34 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-07-06 22:39:34 +0200 |
commit | dc21a38a8598f1efe2ee43ec5648b49f7b7853fd (patch) | |
tree | 60c220a1d9be98618b38db2597427e860522297c /lib | |
parent | 21b5533b83352f7a1a2c4ed9359d0af80847d1b8 (diff) | |
download | nextcloud-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.php | 2 |
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). '%') ) ); } |