diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 18:59:54 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 18:59:54 -0400 |
| commit | 6d52c8b42813722c49890b6e4f776dc0dabf382c (patch) | |
| tree | 5f8baf9a081d145baf4adf1cc4306e46a9fa69d2 /post.php | |
| parent | 4891735c49ee7879d0f299d03ebfbe361f3cc73d (diff) | |
Markup modifiers. Fix issue #66 (public ban message lost when rebuilding post body)
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
