forked from leftypol/leftypol
post.php, pages.php: pack and unpack source ip addresses of ban appeals
This commit is contained in:
parent
b0b684bdb1
commit
3cbf0c2fcf
2 changed files with 7 additions and 1 deletions
2
post.php
2
post.php
|
@ -174,7 +174,7 @@ function db_insert_ban_appeal($ban_id, $source_ip, $appeal_message)
|
|||
{
|
||||
$query = prepare("INSERT INTO ``ban_appeals`` VALUES (NULL, :ban_id, :source_ip, :time, :message, 0)");
|
||||
$query->bindValue(':ban_id', $ban_id, PDO::PARAM_INT);
|
||||
$query->bindValue(':source_ip', $source_ip);
|
||||
$query->bindValue(':source_ip', inet_pton($source_ip));
|
||||
$query->bindValue(':time', time(), PDO::PARAM_INT);
|
||||
$query->bindValue(':message', $appeal_message);
|
||||
$query->execute() or error(db_error($query));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue