mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-04 12:09:08 -04:00
Stricter input handling (cast to int)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user