From 8cb7480484d03a06663ac031ad3db33ea46b77ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 11:14:38 +0100 Subject: fix http basic authentication --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 77388106c..b6c426f54 100644 --- a/functions.php +++ b/functions.php @@ -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'); -- cgit v1.2.3-54-g00ecf