[Pkg-owncloud-commits] [owncloud] 16/62: Password set via OCS API should not be double escaped
David Prévot
taffit at moszumanska.debian.org
Tue Jun 23 23:39:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.5beta
in repository owncloud.
commit 783188d683c01208e4db40db71aec419b23b9f33
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 d9f8206..7c98d87 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();
--
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