summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-09-15 23:07:41 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-09-15 23:07:41 -0700
commitf1887422f8b4ba68dc273fe6f7d3f1123681e89a (patch)
treed806f0b9f35fc3aa912126ad3cf8d67c19ec0def
parent39632c4689842b3e3bb0715c0e9be757149c257d (diff)
Stricter input handling (cast to int)
-rw-r--r--modules/tag/controllers/tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php
index b9f2c61c..1bd6b3cc 100644
--- a/modules/tag/controllers/tags.php
+++ b/modules/tag/controllers/tags.php
@@ -22,7 +22,7 @@ class Tags_Controller extends REST_Controller {
public function _show($tag) {
$page_size = module::get_var("gallery", "page_size", 9);
- $page = $this->input->get("page", "1");
+ $page = (int) $this->input->get("page", "1");
$children_count = $tag->items_count();
$offset = ($page-1) * $page_size;