summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-11-20 13:44:49 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-11-20 13:44:49 +0100
commit9b7cbb114541308cf7dca665c83b39bbfce34b9a (patch)
treec9fd925bfb75d822607a8d9415b9fd303f80c79f /apps
parent568def2b61e45d51d4506ad08723c3e2173481b4 (diff)
downloadnextcloud-server-9b7cbb114541308cf7dca665c83b39bbfce34b9a.tar.gz
nextcloud-server-9b7cbb114541308cf7dca665c83b39bbfce34b9a.zip
interpret http 403 and http 401 as not authorized
Diffstat (limited to 'apps')
-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);