From da3927ed1798884adc4b35c3d6cc8f6075797ade Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 29 Jan 2015 19:01:11 -0800 Subject: [PATCH] Put a limit on ?/recent --- inc/mod/pages.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index c481317e..93e076f9 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2818,6 +2818,7 @@ function mod_recent_posts($lim) { $limit = (is_numeric($lim))? $lim : 25; $last_time = (isset($_GET['last']) && is_numeric($_GET['last'])) ? $_GET['last'] : 0; + if ($limit > 100) $limit = 100; $mod_boards = array(); $boards = listBoards();