"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:29:33 +00:00
parent ee536325fc
commit 3c6a6b8727

View File

@ -33,6 +33,7 @@ function check_access(&$account)
($GLOBALS['egw']->session->reason ? ': '.$GLOBALS['egw']->session->reason : '').'"'); ($GLOBALS['egw']->session->reason ? ': '.$GLOBALS['egw']->session->reason : '').'"');
header('HTTP/1.1 401 Unauthorized'); header('HTTP/1.1 401 Unauthorized');
header('X-WebDAV-Status: 401 Unauthorized', true); 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; exit;
} }
return $sessionid; return $sessionid;