summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-11-23 13:55:03 -0500
committerjim-p <jimp@pfsense.org>2015-11-23 13:55:23 -0500
commit289c70f9e48b8532986d86396e851c0d2e770262 (patch)
treeed7d7be18ed99f4a10226377bfd02276e5df23da
parentddb84143c8bb3bdd94350d40cd1610892b6d8053 (diff)
downloadpfsense-289c70f9e48b8532986d86396e851c0d2e770262.zip
pfsense-289c70f9e48b8532986d86396e851c0d2e770262.tar.gz
Extra safety belts on the RSS widget settings
-rw-r--r--src/usr/local/www/widgets/widgets/rss.widget.php6
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?
}
OpenPOWER on IntegriCloud