diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-09-15 22:51:49 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-09-15 22:51:49 -0700 |
commit | 7608870537503ec571f45a175c8486d7945e7c63 (patch) | |
tree | f37bc245d72541150ed65dfb5e91b32730561100 /modules/rss | |
parent | 7ba93e264512a8a29213f680723e34007b737935 (diff) |
Controller auth / CSRF fixes
Diffstat (limited to 'modules/rss')
-rw-r--r-- | modules/rss/controllers/rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rss/controllers/rss.php b/modules/rss/controllers/rss.php index b89bed40..015d6032 100644 --- a/modules/rss/controllers/rss.php +++ b/modules/rss/controllers/rss.php @@ -21,13 +21,13 @@ class Rss_Controller extends Controller { public static $page_size = 20; public function feed($module_id, $feed_id, $id=null) { - $page = $this->input->get("page", 1); + $page = (int) $this->input->get("page", 1); if ($page < 1) { url::redirect(url::merge(array("page" => 1))); } // Configurable page size between 1 and 100, default 20 - $page_size = max(1, min(100, $this->input->get("page_size", self::$page_size))); + $page_size = max(1, min(100, (int) $this->input->get("page_size", self::$page_size))); // Run the appropriate feed callback if (module::is_active($module_id)) { |