"fix for bug in kde4.2, which seems to have a problem with a 401 without a body"

This commit is contained in:
Ralf Becker 2009-10-04 07:30:16 +00:00
parent 4044382c8a
commit 61ef55ffb8

View File

@ -33,6 +33,7 @@ function check_access(&$account)
($GLOBALS['egw']->session->reason ? ': '.$GLOBALS['egw']->session->reason : '').'"');
header('HTTP/1.1 401 Unauthorized');
header('X-WebDAV-Status: 401 Unauthorized', true);
echo "<html>\n<head>\n<title>401 Unauthorized</title>\n<body>\nAuthorization failed.\n</body>\n</html>\n";
exit;
}
return $sessionid;