Skip to content
Snippets Groups Projects
Commit b0e12592 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

improve error handling of webdavauth

parent cb41b885
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment