diff options
-rw-r--r-- | include/functions_rate.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php index ae896c29a..11bb7e8bf 100644 --- a/include/functions_rate.inc.php +++ b/include/functions_rate.inc.php @@ -39,6 +39,7 @@ function rate_picture($image_id, $rate) if (!isset($rate) or !$conf['rate'] + or !preg_match('/^[0-9]+$/', $rate) or !in_array($rate, $conf['rate_items'])) { return false; |