diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-21 14:39:04 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-21 14:39:04 +0200 |
commit | b0e12592957d2d2345924c0ac65e140be0e178db (patch) | |
tree | 4ceadd5d56c8d89246b3d079d2cd7bd05e1a4a12 /apps/user_webdavauth | |
parent | cb41b88520498ca2325aedd180c3fe29474c83bf (diff) | |
download | nextcloud-server-b0e12592957d2d2345924c0ac65e140be0e178db.tar.gz nextcloud-server-b0e12592957d2d2345924c0ac65e140be0e178db.zip |
improve error handling of webdavauth
Diffstat (limited to 'apps/user_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 146034a5d43..86e5b916f3d 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; } } |