[Pkg-owncloud-commits] [owncloud] 127/215: Password set via OCS API should not be double escaped
David Prévot
taffit at moszumanska.debian.org
Tue May 5 01:01:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 73bb3a22f63e0758056d2f28cf81e2b5563a5b99
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date: Tue Apr 28 10:33:19 2015 +0200
Password set via OCS API should not be double escaped
---
lib/private/share/share.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 227a3d5..f22bd0c 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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list