bug 894: Limiting the points is still critical as the points are also used
authorMichael Tänzer <neo@nhng.de>
Sun, 23 Oct 2011 00:21:00 +0000 (02:21 +0200)
committerMichael Tänzer <neo@nhng.de>
Sun, 23 Oct 2011 00:21:00 +0000 (02:21 +0200)
for authorization (e.g. maxpoints() relies on the value of sum(`points`) to
calculate the points an assurer may issue)

Signed-off-by: Michael Tänzer <neo@nhng.de>
www/wot.php

index eef8b38..61fbc1b 100644 (file)
@@ -252,14 +252,13 @@ $iecho= "c";
 
                $_POST['expire'] = 0;
 
-/* should not be necessary when 15.php is being used
                if(($drow['total'] + $newpoints) > 100 && $max < 100)
                        $newpoints = 100 - $drow['total'];
                if(($drow['total'] + $newpoints) > $max && $max >= 100)
                        $newpoints = $max - $drow['total'];
                if($newpoints < 0)
                        $newpoints = 0;
-*/     
+               
                if(mysql_escape_string(stripslashes($_POST['date'])) == "")
                        $_POST['date'] = date("Y-m-d H:i:s");