[Pkg-owncloud-commits] [owncloud] 05/07: improve error handling of webdavauth
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:14:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.13
in repository owncloud.
commit cac5cf1839e8c376d4e99852be32062410e4a8a7
Author: Georg Ehrke <georg at ownCloud.com>
Date: Fri Jun 21 14:39:04 2013 +0200
improve error handling of webdavauth
---
apps/user_webdavauth/user_webdavauth.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php
index 839196c..9dde965 100755
--- a/apps/user_webdavauth/user_webdavauth.php
+++ b/apps/user_webdavauth/user_webdavauth.php
@@ -56,10 +56,10 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
}
$returncode= substr($headers[0], 9, 3);
- if(($returncode=='401') or ($returncode=='403')) {
- return(false);
- }else{
- return($uid);
+ if(substr($returncode, 0, 1) === '2') {
+ return $uid;
+ } else {
+ return false;
}
}
--
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