diff options
| author | Macil Tech <maciltech@gmail.com> | 2012-11-28 20:08:53 -0700 |
|---|---|---|
| committer | Macil Tech <maciltech@gmail.com> | 2013-01-19 00:39:30 -0600 |
| commit | 3a9ed90c585b0e97cbc3453f5a004c34e630cf00 (patch) | |
| tree | 79b0b93d1b11f37cbff9f024e34c28ada39239cc | |
| parent | 7eef94e04e3f80ae776cd2c02ca29dd93945a47f (diff) | |
Incorrect parameter type.
The parameter was bound with the wrong type. I guess the type isn't
enforced judging by how the code still seemed to work, but it probably
should be fixed.
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 3de1ccaf..8ce81e25 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -527,7 +527,7 @@ function checkFlood($post) { $query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE (`ip` = :ip AND `time` >= :floodtime) OR (`ip` = :ip AND `body` != '' AND `body` = :body AND `time` >= :floodsameiptime) OR (`body` != '' AND `body` = :body AND `time` >= :floodsametime) LIMIT 1", $board['uri'])); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); - $query->bindValue(':body', $post['body'], PDO::PARAM_INT); + $query->bindValue(':body', $post['body']); $query->bindValue(':floodtime', time()-$config['flood_time'], PDO::PARAM_INT); $query->bindValue(':floodsameiptime', time()-$config['flood_time_ip'], PDO::PARAM_INT); $query->bindValue(':floodsametime', time()-$config['flood_time_same'], PDO::PARAM_INT); |
