diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-11-20 13:44:49 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-11-20 13:44:49 +0100 |
commit | 9b7cbb114541308cf7dca665c83b39bbfce34b9a (patch) | |
tree | c9fd925bfb75d822607a8d9415b9fd303f80c79f | |
parent | 568def2b61e45d51d4506ad08723c3e2173481b4 (diff) | |
download | nextcloud-server-9b7cbb114541308cf7dca665c83b39bbfce34b9a.tar.gz nextcloud-server-9b7cbb114541308cf7dca665c83b39bbfce34b9a.zip |
interpret http 403 and http 401 as not authorized
-rwxr-xr-x | apps/user_webdavauth/user_webdavauth.php | 2 |
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); |