mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Password set via OCS API should not be double escaped
This commit is contained in:
parent
9108c103b2
commit
73bb3a22f6
1 changed files with 1 additions and 1 deletions
|
|
@ -1218,7 +1218,7 @@ class Share extends \OC\Share\Constants {
|
|||
$qb->update('`*PREFIX*share`')
|
||||
->set('`share_with`', ':pass')
|
||||
->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);
|
||||
|
||||
$qb->execute();
|
||||
|
|
|
|||
Loading…
Reference in a new issue