diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-28 10:33:19 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-06-03 21:32:10 +0200 |
commit | 783188d683c01208e4db40db71aec419b23b9f33 (patch) | |
tree | 8cd58625d2856f3bd609c975cb14547f73e43e9f /lib | |
parent | 7213be29c9010ecbd5e8f770e038abb07ad31020 (diff) | |
download | nextcloud-server-783188d683c01208e4db40db71aec419b23b9f33.tar.gz nextcloud-server-783188d683c01208e4db40db71aec419b23b9f33.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 d9f82062cfc..7c98d87cced 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -1203,7 +1203,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(); |