summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-05 16:31:56 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-05 16:41:30 +0100
commitd514200b560c035d71304b54439c4b917de74069 (patch)
tree43551afaea9d7fb7fea738c0bf44aa5d5502fe06 /lib/private/appframework
parent556fabf15d2146e7bf8c64b5575305d042e736d7 (diff)
downloadnextcloud-server-d514200b560c035d71304b54439c4b917de74069.tar.gz
nextcloud-server-d514200b560c035d71304b54439c4b917de74069.zip
Add escapeLikeParameter to IDBConnection
Diffstat (limited to 'lib/private/appframework')
-rw-r--r--lib/private/appframework/db/db.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php
index 8e3fa6e4197..9f912f9c0a4 100644
--- a/lib/private/appframework/db/db.php
+++ b/lib/private/appframework/db/db.php
@@ -258,4 +258,13 @@ class Db implements IDb {
return $this->connection->tableExists($table);
}
+ /**
+ * Espace a parameter to be used in a LIKE query
+ *
+ * @param string $param
+ * @return string
+ */
+ public function escapeLikeParameter($param) {
+ return $this->connection->escapeLikeParameter($param);
+ }
}