1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 13:01:27 +00:00

fix http basic authentication

This commit is contained in:
Andrew Dolgov
2005-11-20 11:14:38 +01:00
parent 2317ffaae7
commit 8cb7480484
5 changed files with 32 additions and 8 deletions

View File

@@ -604,9 +604,9 @@
}
function http_authenticate_user($link) {
function http_authenticate_user($link, $force_logout) {
if (!$_SERVER['PHP_AUTH_USER']) {
if (!$_SERVER['PHP_AUTH_USER'] || $force_logout) {
header('WWW-Authenticate: Basic realm="Tiny Tiny RSS"');
header('HTTP/1.0 401 Unauthorized');