Password set via OCS API should not be double escaped
This commit is contained in:
parent
9108c103b2
commit
73bb3a22f6
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue