Skip to content
Snippets Groups Projects
Commit d2704764 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

use new $INPUT->valid() method in feed.php

parent 6920d2fd
No related branches found
No related tags found
No related merge requests found
...@@ -141,12 +141,10 @@ function rss_parseOptions() { ...@@ -141,12 +141,10 @@ function rss_parseOptions() {
$opt['guardmail'] = ($conf['mailguard'] != '' && $conf['mailguard'] != 'none'); $opt['guardmail'] = ($conf['mailguard'] != '' && $conf['mailguard'] != 'none');
$type = valid_input_set( $type = $INPUT->valid(
'type', array( 'type',
'rss', 'rss2', 'atom', 'atom1', 'rss1', array( 'rss', 'rss2', 'atom', 'atom1', 'rss1'),
'default' => $conf['rss_type'] $conf['rss_type']
),
$_REQUEST
); );
switch($type) { switch($type) {
case 'rss': case 'rss':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment