Browse Source

improve error handling of webdavauth

tags/v6.0.0alpha2
Georg Ehrke 11 years ago
parent
commit
b0e1259295
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      apps/user_webdavauth/user_webdavauth.php

+ 4
- 4
apps/user_webdavauth/user_webdavauth.php View File

@@ -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;
}

}

Loading…
Cancel
Save