summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-31 13:23:29 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-31 13:23:29 +1000
commitd166fc70bd6378c3f72b7f40e71a79fcb63bc1f2 (patch)
tree3b1c295245e25c10de8d27b3fd50b7cccfcb423e /inc/mod/pages.php
parentf1b1d41230a41e70d098f4e04f138bc190154e39 (diff)
Fix \t in posts (editing posts, and HTML Tidy)
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index afd8daf3..202ea182 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1317,6 +1317,8 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
$post['body'] = str_replace("\n", '&#010;', 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", '&#09;', $post['body_nomarkup']);
+ $post['body'] = str_replace("\t", '&#09;', $post['body']);
}
mod_page(_('Edit post'), 'mod/edit_post_form.html', array('token' => $security_token, 'board' => $board, 'raw' => $edit_raw_html, 'post' => $post));