summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-15 13:44:37 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-15 13:44:37 -0800
commite754bc18ea5dfd93beae5bad1c743610ceeef6e3 (patch)
tree3e27647ec544aa717290c639b9a6a0318e8bc09d
parentdcddc68f58dac2f0fe71f5a00ea4af32618efa13 (diff)
Input sanitization
-rw-r--r--modules/organize/controllers/organize.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 9d9da65e..c92d711f 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -127,7 +127,7 @@ class Organize_Controller extends Controller {
"sort_order" => $album->sort_order));
}
- function sort_order($album_id, $col, $dir) {
+ public function sort_order($album_id, $col, $dir) {
access::verify_csrf();
$album = ORM::factory("item", $album_id);
@@ -149,10 +149,10 @@ class Organize_Controller extends Controller {
"sort_order" => $album->sort_order));
}
- private static function _get_micro_thumb_grid($album, $offset) {
+ private static function _get_micro_thumb_grid(Item_Model $album, $offset) {
$v = new View("organize_thumb_grid.html");
$v->album = $album;
- $v->offset = $offset;
+ $v->offset = (int) $offset;
return $v;
}