[Pkg-owncloud-commits] [owncloud] 216/394: use username, not passed loginname, might differ

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:08 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit c035fe4cbf936d28357b65818a2bf3b9978a23f9
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Thu Dec 13 01:30:25 2012 +0100

    use username, not passed loginname, might differ
---
 lib/connector/sabre/auth.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/connector/sabre/auth.php b/lib/connector/sabre/auth.php
index db8f005..4224dbb 100644
--- a/lib/connector/sabre/auth.php
+++ b/lib/connector/sabre/auth.php
@@ -32,7 +32,7 @@ class OC_Connector_Sabre_Auth extends Sabre_DAV_Auth_Backend_AbstractBasic {
 	 */
 	protected function validateUserPass($username, $password) {
 		if (OC_User::isLoggedIn()) {
-			OC_Util::setupFS($username);
+			OC_Util::setupFS(OC_User::getUser());
 			return true;
 		} else {
 			OC_Util::setUpFS();//login hooks may need early access to the filesystem

-- 
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