Parcourir la source

add protection

andre il y a 4 ans
Parent
commit
b07744c112
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      action.php

+ 1 - 1
action.php

@@ -16,7 +16,7 @@ class action {
             $this->list($ip);
             return true;
         };
-        $dbAction = $this->db->prepare("INSERT INTO blocklist ip VALUES (?) ON DUPLICATE KEY UPDATE count = count + 1");
+        $dbAction = $this->db->prepare("INSERT INTO blocklist (ip) VALUES (?) ON DUPLICATE KEY UPDATE count = count + 1");
         $dbAction->bind_param('i',$ip);
         $dbAction->execute();
         return true;