]> source.dussan.org Git - nextcloud-server.git/commitdiff
interpret http 403 and http 401 as not authorized
authorFrank Karlitschek <frank@owncloud.org>
Tue, 20 Nov 2012 12:44:49 +0000 (13:44 +0100)
committerFrank Karlitschek <frank@owncloud.org>
Tue, 20 Nov 2012 12:44:49 +0000 (13:44 +0100)
apps/user_webdavauth/user_webdavauth.php

index 0b0be7c2fa1a9b42d31193094b984cba9fb9e937..839196c114c9e7f948ce301fd1e24592462cbb36 100755 (executable)
@@ -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);