From e972548ae23b18576c4e6482723ca95a1dd22055 Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sat, 20 Sep 2014 15:20:22 +0000 Subject: [PATCH] More dice limits --- inc/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 93b9e5c6..72c2e974 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2360,7 +2360,11 @@ function diceRoller($post) { $diceY = intval($diceY); $diceZ = intval($diceZ); - // Arbitrary maximum number of dice + // Apply sane limits + if ($diceY > 1024) { + $diceY = 1024; + } + if ($diceX > 200) { $diceX = 200; }