summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-04-30 19:49:25 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-04-30 19:49:25 +0200
commitd2704764cf26e4de50e48babaa675e8c45c6c1d6 (patch)
treecc92bf73df353d530236563887c3b6c4e1a8f184 /feed.php
parent6920d2fd3e30c9cb3abd500fe18273974da7182f (diff)
downloadrpg-d2704764cf26e4de50e48babaa675e8c45c6c1d6.tar.gz
rpg-d2704764cf26e4de50e48babaa675e8c45c6c1d6.tar.bz2
use new $INPUT->valid() method in feed.php
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/feed.php b/feed.php
index c1a5f4503..40f9af659 100644
--- a/feed.php
+++ b/feed.php
@@ -141,12 +141,10 @@ function rss_parseOptions() {
$opt['guardmail'] = ($conf['mailguard'] != '' && $conf['mailguard'] != 'none');
- $type = valid_input_set(
- 'type', array(
- 'rss', 'rss2', 'atom', 'atom1', 'rss1',
- 'default' => $conf['rss_type']
- ),
- $_REQUEST
+ $type = $INPUT->valid(
+ 'type',
+ array( 'rss', 'rss2', 'atom', 'atom1', 'rss1'),
+ $conf['rss_type']
);
switch($type) {
case 'rss':