summaryrefslogtreecommitdiffstats
path: root/apps/user_webdavauth
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-06-21 11:28:00 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-06-21 11:28:00 -0700
commit65de0a5831669fda785631841d2d8292a9247ed7 (patch)
tree5e33dd6c80557352515ba10a29faa293c255d7a5 /apps/user_webdavauth
parent8c21cc64d075fc76e99811e524267b1ce8753f38 (diff)
parentb0e12592957d2d2345924c0ac65e140be0e178db (diff)
downloadnextcloud-server-65de0a5831669fda785631841d2d8292a9247ed7.tar.gz
nextcloud-server-65de0a5831669fda785631841d2d8292a9247ed7.zip
Merge pull request #3810 from owncloud/improve_webdavauth
improve error handling of webdavauth
Diffstat (limited to 'apps/user_webdavauth')
-rwxr-xr-xapps/user_webdavauth/user_webdavauth.php8
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;
}
}