summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
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');