summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-21 14:44:35 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-02 09:48:15 +0200
commita76d4ef04e461132081ad84c78784dfacfc9896f (patch)
tree82819b8414c3d77ff7803f605fe26947fc86f4d0 /lib/private/Authentication
parent3b648645f462907462a3cf1233406eebe13bd64d (diff)
downloadnextcloud-server-a76d4ef04e461132081ad84c78784dfacfc9896f.tar.gz
nextcloud-server-a76d4ef04e461132081ad84c78784dfacfc9896f.zip
Fix clob comparison
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r--lib/private/Authentication/Token/DefaultTokenMapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenMapper.php b/lib/private/Authentication/Token/DefaultTokenMapper.php
index a23be624542..64812dcaf80 100644
--- a/lib/private/Authentication/Token/DefaultTokenMapper.php
+++ b/lib/private/Authentication/Token/DefaultTokenMapper.php
@@ -156,7 +156,7 @@ class DefaultTokenMapper extends Mapper {
public function deleteByName($name) {
$qb = $this->db->getQueryBuilder();
$qb->delete('authtoken')
- ->where($qb->expr()->eq('name', $qb->createNamedParameter($name)));
+ ->where($qb->expr()->eq('name', $qb->createNamedParameter($name, IQueryBuilder::PARAM_LOB), IQueryBuilder::PARAM_LOB));
$qb->execute();
}