Markup modifiers. Fix issue #66 (public ban message lost when rebuilding post body)

This commit is contained in:
Michael Foster 2013-07-31 18:59:54 -04:00
parent 4891735c49
commit 6d52c8b428
3 changed files with 45 additions and 4 deletions

View file

@ -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