diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2005-11-20 11:14:38 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2005-11-20 11:14:38 +0100 |
| commit | 8cb7480484d03a06663ac031ad3db33ea46b77ae (patch) | |
| tree | a5d486db88c66f3d2177917195e633f2b9ebc242 /functions.php | |
| parent | 2317ffaae70ec345add4eb90c4f79d74ca831e8b (diff) | |
fix http basic authentication
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |