summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-03-19 12:10:48 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-03-19 12:10:48 +0100
commit8d42cd79ea294fc836eca94c7bc469d5bad5e8eb (patch)
tree7ead6353ce259c3c6db0b7afed0ffe920a5947ce /feed.php
parentc6571d58ba8f02fc1afaeb54319f4289da993d02 (diff)
parent7ff009d9323a4431c9463fc8e5bfb3ada17f33e0 (diff)
downloadrpg-8d42cd79ea294fc836eca94c7bc469d5bad5e8eb.tar.gz
rpg-8d42cd79ea294fc836eca94c7bc469d5bad5e8eb.tar.bz2
Merge pull request #622 from splitbrain/disablefeed
allow disabling the rss feed
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/feed.php b/feed.php
index 5bf1d2e85..c1a5f4503 100644
--- a/feed.php
+++ b/feed.php
@@ -15,6 +15,13 @@ require_once(DOKU_INC.'inc/init.php');
//close session
session_write_close();
+//feed disabled?
+if(!actionOK('rss')) {
+ http_status(404);
+ echo '<error>RSS feed is disabled.</error>';
+ exit;
+}
+
// get params
$opt = rss_parseOptions();