Fix incorrect header

This commit is contained in:
Daniel Winzen
2016-04-26 12:27:39 +02:00
parent 7210a9fc90
commit 8408edd1f8

View File

@ -308,7 +308,7 @@ function send_redirect($url){
function send_access_denied(){ function send_access_denied(){
global $H, $I, $U; global $H, $I, $U;
header('HTTP/1.1 401 Forbidden'); header('HTTP/1.1 403 Forbidden');
print_start('access_denied'); print_start('access_denied');
echo "<h1>$I[accessdenied]</h1>".sprintf($I['loggedinas'], style_this($U['nickname'], $U['style'])); echo "<h1>$I[accessdenied]</h1>".sprintf($I['loggedinas'], style_this($U['nickname'], $U['style']));
echo "<br><$H[form]>$H[commonform]".hidden('action', 'logout'); echo "<br><$H[form]>$H[commonform]".hidden('action', 'logout');