diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-21 14:39:04 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-21 20:38:56 +0200 |
commit | cac5cf1839e8c376d4e99852be32062410e4a8a7 (patch) | |
tree | 5dcf9bd8c8bf6f636599dbcbad05d23a0d46943f | |
parent | 46ed208dfaf1fac942af643663497a1bf3495747 (diff) | |
download | nextcloud-server-cac5cf1839e8c376d4e99852be32062410e4a8a7.tar.gz nextcloud-server-cac5cf1839e8c376d4e99852be32062410e4a8a7.zip |
improve error handling of webdavauth
-rwxr-xr-x | apps/user_webdavauth/user_webdavauth.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php index 839196c114c..9dde9651c64 100755 --- a/apps/user_webdavauth/user_webdavauth.php +++ b/apps/user_webdavauth/user_webdavauth.php @@ -56,10 +56,10 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend { } $returncode= substr($headers[0], 9, 3); - if(($returncode=='401') or ($returncode=='403')) { - return(false); - }else{ - return($uid); + if(substr($returncode, 0, 1) === '2') { + return $uid; + } else { + return false; } } |