summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 18:59:54 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 18:59:54 -0400
commit6d52c8b42813722c49890b6e4f776dc0dabf382c (patch)
tree5f8baf9a081d145baf4adf1cc4306e46a9fa69d2 /post.php
parent4891735c49ee7879d0f299d03ebfbe361f3cc73d (diff)
Markup modifiers. Fix issue #66 (public ban message lost when rebuilding post body)
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 8820db2d..adb44b58 100644
--- a/post.php
+++ b/post.php
@@ -107,7 +107,7 @@ if (isset($_POST['delete'])) {
if (count($report) > $config['report_limit'])
error($config['error']['toomanyreports']);
- $reason = &$_POST['reason'];
+ $reason = escape_markup_modifiers($_POST['reason']);
markup($reason);
foreach ($report as &$id) {
@@ -377,6 +377,7 @@ if (isset($_POST['delete'])) {
error(sprintf($config['error']['toolong'], 'password'));
wordfilters($post['body']);
+ $post['body'] = escape_markup_modifiers($post['body']);
if (mysql_version() >= 50503) {
$post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset