From: Frank Karlitschek Date: Tue, 20 Nov 2012 12:44:49 +0000 (+0100) Subject: interpret http 403 and http 401 as not authorized X-Git-Tag: v5.0.0alpha1~425^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b7cbb114541308cf7dca665c83b39bbfce34b9a;p=nextcloud-server.git interpret http 403 and http 401 as not authorized --- 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);