Password set via OCS API should not be double escaped

This commit is contained in:
Roeland Jago Douma 2015-04-28 10:33:19 +02:00
parent 9108c103b2
commit 73bb3a22f6
1 changed files with 1 additions and 1 deletions

View File

@ -1218,7 +1218,7 @@ class Share extends \OC\Share\Constants {
$qb->update('`*PREFIX*share`') $qb->update('`*PREFIX*share`')
->set('`share_with`', ':pass') ->set('`share_with`', ':pass')
->where('`id` = :shareId') ->where('`id` = :shareId')
->setParameter(':pass', is_null($password) ? 'NULL' : $qb->expr()->literal(\OC::$server->getHasher()->hash($password))) ->setParameter(':pass', is_null($password) ? 'NULL' : \OC::$server->getHasher()->hash($password))
->setParameter(':shareId', $shareId); ->setParameter(':shareId', $shareId);
$qb->execute(); $qb->execute();