aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_rate.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php
index 152a93d90..45d3e9e7f 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;