diff options
author | jim-p <jimp@pfsense.org> | 2015-11-23 13:55:03 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-11-23 13:55:23 -0500 |
commit | 289c70f9e48b8532986d86396e851c0d2e770262 (patch) | |
tree | ed7d7be18ed99f4a10226377bfd02276e5df23da /src/usr/local/www/widgets | |
parent | ddb84143c8bb3bdd94350d40cd1610892b6d8053 (diff) | |
download | pfsense-289c70f9e48b8532986d86396e851c0d2e770262.zip pfsense-289c70f9e48b8532986d86396e851c0d2e770262.tar.gz |
Extra safety belts on the RSS widget settings
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/rss.widget.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/widgets/widgets/rss.widget.php b/src/usr/local/www/widgets/widgets/rss.widget.php index 450bdd4..3d5fe8d 100644 --- a/src/usr/local/www/widgets/widgets/rss.widget.php +++ b/src/usr/local/www/widgets/widgets/rss.widget.php @@ -91,15 +91,15 @@ if (!$rss_feed_s) { $config['widgets']['rssfeed'] = "https://blog.pfsense.org"; } -if (!$max_items) { +if (!$max_items || !is_numeric($max_items)) { $max_items = 10; } -if (!$rsswidgetheight) { +if (!$rsswidgetheight || !is_numeric($rsswidgetheight)) { $rsswidgetheight = 300; } -if (!$rsswidgettextlength) { +if (!$rsswidgettextlength || !is_numeric($rsswidgettextlength)) { $rsswidgettextlength = 140; // oh twitter, how do we love thee? } |