diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-28 10:33:19 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-28 10:33:19 +0200 |
commit | 73bb3a22f63e0758056d2f28cf81e2b5563a5b99 (patch) | |
tree | c6cf3fd8ea26a92848c79c5815fa49c1ad9d10c8 /lib | |
parent | 9108c103b25d925ea0ababfa88140ba5cbb9ad77 (diff) | |
download | nextcloud-server-73bb3a22f63e0758056d2f28cf81e2b5563a5b99.tar.gz nextcloud-server-73bb3a22f63e0758056d2f28cf81e2b5563a5b99.zip |
Password set via OCS API should not be double escaped
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 227a3d5a411..f22bd0c520b 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -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(); |