Stricter input handling (cast to int)

This commit is contained in:
Andy Staudacher
2009-09-15 23:07:41 -07:00
parent 39632c4689
commit f1887422f8

View File

@@ -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;