summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-12 09:33:51 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-12 09:33:51 +0200
commitfd75c082386444ff5f9a61853cf493597c2bea28 (patch)
tree35e75d5473502d70c5060e3ee846d34dea0e6770
parent65efb388e660dbb10b73e622dd776a8ee8618f1d (diff)
downloadnextcloud-server-fd75c082386444ff5f9a61853cf493597c2bea28.tar.gz
nextcloud-server-fd75c082386444ff5f9a61853cf493597c2bea28.zip
Fix order of parameter and escaping
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Files/Type/Loader.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Type/Loader.php b/lib/private/Files/Type/Loader.php
index 41093689094..1217e0dd498 100644
--- a/lib/private/Files/Type/Loader.php
+++ b/lib/private/Files/Type/Loader.php
@@ -165,12 +165,12 @@ class Loader implements IMimeTypeLoader {
->where($update->expr()->neq(
'mimetype', $update->createNamedParameter($mimetypeId)
))
- ->andwhere($update->expr()->neq(
+ ->andWhere($update->expr()->neq(
'mimetype', $update->createNamedParameter($isFolderId)
))
->andWhere($update->expr()->like(
$update->createFunction('LOWER(' . $update->getColumnName('name') . ')'),
- '%' . $this->dbConnection->escapeLikeParameter($update->createNamedParameter('.' . $ext))
+ $update->createNamedParameter('%' . $this->dbConnection->escapeLikeParameter('.' . $ext))
));
return $update->execute();
}