Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-04-28 11:33:19 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2015-06-03 22:32:10 +0300
commit783188d683c01208e4db40db71aec419b23b9f33 (patch)
tree8cd58625d2856f3bd609c975cb14547f73e43e9f /lib
parent7213be29c9010ecbd5e8f770e038abb07ad31020 (diff)
Password set via OCS API should not be double escaped
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/share.php2
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();