mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Reorder calls to header, and send return code (although this is php 4.3+ it
should be OK).
This commit is contained in:
parent
a73c430280
commit
002806b16c
@ -59,8 +59,8 @@ class BasicAuthSession {
|
||||
}
|
||||
|
||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
header('HTTP/1.0 401 Unauthorized', true, 401 );
|
||||
header( sprintf( 'WWW-Authenticate: Basic realm="%s"', $c->system_name) );
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
echo 'Please log in for access to this system.';
|
||||
dbg_error_log( "BasicAuth", ":Session: User is not authorised" );
|
||||
exit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user