Skip to content

Commit

Permalink
Rate security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZonD80 committed Jun 20, 2012
1 parent 37ed32d commit 26bd50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kinokpk.com_releaser_v.3.30/upload/rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function check_myself($id,$type) {
elseif ($type=='relgroups') $check = @mysql_result(sql_query("SELECT 1 FROM relgroups WHERE FIND_IN_SET({$CURUSER['id']},owners) OR FIND_IN_SET({$CURUSER['id']},members)"));
if ($check) return false; else return true;
}
if ($_GET['act']=='up') $act='+1'; else $act='-1';
if ((string)$_GET['act']=='up') $act='+1'; else $act='-1';

if (!in_array($type,$allowed_types)) $invalid=true;

Expand Down

0 comments on commit 26bd50e

Please sign in to comment.