[Pkg-owncloud-commits] [owncloud] 04/15: set NULL correctly in password update
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 18:39:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.5RC1
in repository owncloud.
commit 1c368754299495a173ffef01725b6e1c763f7af2
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date: Wed Jun 24 12:36:26 2015 +0200
set NULL correctly in password update
Old code used 'NULL' but docterine wants null. Now it is possible again
to remove the password from a link share.
---
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 7c98d87..7e69338 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' : \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