summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-20 18:28:39 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-20 18:28:39 +1100
commitdd845f4c7eaece33367b15bf60419ca92616a1a0 (patch)
tree06f1b520519c5353cee0f4f893f8d1f1b379ba9d /post.php
parentad3af856b3e8a70b71f80a3086104f36d149184a (diff)
Finalized report syste,
Diffstat (limited to 'post.php')
-rw-r--r--post.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/post.php b/post.php
index 5b1268da..23196c06 100644
--- a/post.php
+++ b/post.php
@@ -111,6 +111,9 @@
if(count($report) > $config['report_limit'])
error($config['error']['toomanyreports']);
+ $reason = $_POST['reason'];
+ markup($reason);
+
foreach($report as &$id) {
$query = prepare(sprintf("SELECT 1 FROM `posts_%s` WHERE `id` = :id", $board['uri']));
$query->bindValue(':id', $id, PDO::PARAM_INT);
@@ -122,7 +125,7 @@
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR);
$query->bindValue(':board', $board['id'], PDO::PARAM_INT);
$query->bindValue(':post', $id, PDO::PARAM_INT);
- $query->bindValue(':reason', htmlentities($_POST['reason']), PDO::PARAM_STR);
+ $query->bindValue(':reason', $reason, PDO::PARAM_STR);
$query->execute() or error(db_error($query));
}
}