summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-07-14 03:45:12 +0800
committerJeffery To <jeffery.to@gmail.com>2009-07-14 03:45:12 +0800
commitae6a3e258d58c863fb54c1c2b06a426fccb5a689 (patch)
treeef2966a9e4fe28110ec12af243c411c5ca492fe5 /index.php
parent6a0f0e32d5e837c3f0f2041bc206fc35d69f497c (diff)
Adds HTTP basic authentication for private RSS 1.0 feeds
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 5f9a048f2..69c0bc1b2 100644
--- a/index.php
+++ b/index.php
@@ -165,7 +165,8 @@ function main()
if (!$user && common_config('site', 'private') &&
!in_array($action, array('login', 'openidlogin', 'finishopenidlogin',
- 'recoverpassword', 'api', 'doc', 'register'))) {
+ 'recoverpassword', 'api', 'doc', 'register')) &&
+ !preg_match('/rss$/', $action)) {
common_redirect(common_local_url('login'));
return;
}