Fix \t in posts (editing posts, and HTML Tidy)

This commit is contained in:
Michael Foster 2013-08-31 13:23:29 +10:00
parent f1b1d41230
commit d166fc70bd
2 changed files with 6 additions and 4 deletions

View file

@ -1317,6 +1317,8 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
$post['body'] = str_replace("\n", '
', utf8tohtml($post['body']));
$post['body_nomarkup'] = str_replace("\r", '', $post['body_nomarkup']);
$post['body'] = str_replace("\r", '', $post['body']);
$post['body_nomarkup'] = str_replace("\t", '	', $post['body_nomarkup']);
$post['body'] = str_replace("\t", '	', $post['body']);
}
mod_page(_('Edit post'), 'mod/edit_post_form.html', array('token' => $security_token, 'board' => $board, 'raw' => $edit_raw_html, 'post' => $post));