summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-11-20 06:40:21 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-11-20 06:40:21 -0800
commit486b8013d03e4ba3dfa6f11e5a86498391e8dcea (patch)
treec9fd925bfb75d822607a8d9415b9fd303f80c79f
parent568def2b61e45d51d4506ad08723c3e2173481b4 (diff)
parent9b7cbb114541308cf7dca665c83b39bbfce34b9a (diff)
downloadnextcloud-server-486b8013d03e4ba3dfa6f11e5a86498391e8dcea.tar.gz
nextcloud-server-486b8013d03e4ba3dfa6f11e5a86498391e8dcea.zip
Merge pull request #524 from owncloud/fix_user_webdavauth
interpret http 403 and http 401 as not authorized
-rwxr-xr-xapps/user_webdavauth/user_webdavauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php
index 0b0be7c2fa1..839196c114c 100755
--- a/apps/user_webdavauth/user_webdavauth.php
+++ b/apps/user_webdavauth/user_webdavauth.php
@@ -56,7 +56,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
}
$returncode= substr($headers[0], 9, 3);
- if($returncode=='401') {
+ if(($returncode=='401') or ($returncode=='403')) {
return(false);
}else{
return($uid);