summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-04-28 10:33:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-04-28 10:33:19 +0200
commit73bb3a22f63e0758056d2f28cf81e2b5563a5b99 (patch)
treec6cf3fd8ea26a92848c79c5815fa49c1ad9d10c8 /lib
parent9108c103b25d925ea0ababfa88140ba5cbb9ad77 (diff)
downloadnextcloud-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.php2
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();