mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
merge r30563 from trunk to branch 2.7
bug 3178 fixed, in_array check is not reliable when you compare string (user input) and numeric values git-svn-id: http://piwigo.org/svn/branches/2.7@30566 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user