Hard coded block limit for pool statistics

This should fix a potential DoS like attack when fetching a random
amount of blocks continously.

Fixes #387
This commit is contained in:
Sebastian Grewe 2013-07-06 17:38:23 +02:00
parent a6c7d5eaa9
commit 9412107b53

View File

@ -5,7 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt');
if (!$user->isAuthenticated()) header("Location: index.php?page=home");
// Grab the last blocks found
empty($_REQUEST['limit']) ? $iLimit = 20 : $iLimit = $_REQUEST['limit'];
$iLimit = 20;
$aBlocksFoundData = $statistics->getBlocksFound($iLimit);
// Propagate content our template