diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-12 10:33:51 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-17 11:29:53 +0300 |
commit | 2e3fe61f992ed2afae7cc9037039e931de8794b3 (patch) | |
tree | 9efdf5b8ac1a0be060b07ad6fdfc08c4e0e6e4ab /lib/private | |
parent | c85a770ecfb3e0824b777aff4e938765e188f561 (diff) |
Fix order of parameter and escaping
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Type/Loader.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Type/Loader.php b/lib/private/Files/Type/Loader.php index 9dcd21b4d9a..f338c4314d9 100644 --- a/lib/private/Files/Type/Loader.php +++ b/lib/private/Files/Type/Loader.php @@ -166,12 +166,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(); } |