mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 17:53:50 -04:00
Controller auth / CSRF fixes
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user