post editing bug

This commit is contained in:
Michael Save 2012-02-17 01:37:22 +11:00
parent 89ecd645d1
commit 8ac139f6a2

View File

@ -2170,6 +2170,8 @@
exit; exit;
} }
$post['body_nomarkup'] = utf8tohtml($post['body_nomarkup']);
if($config['minify_html']) if($config['minify_html'])
$post['body_nomarkup'] = str_replace("\n", '
', $post['body_nomarkup']); $post['body_nomarkup'] = str_replace("\n", '
', $post['body_nomarkup']);
@ -2190,7 +2192,7 @@
'<th>Body</th>' . '<th>Body</th>' .
'<td>' . '<td>' .
'<textarea name="body" rows="8" cols="38">' . '<textarea name="body" rows="8" cols="38">' .
utf8tohtml($post['body_nomarkup']) . . $post['body_nomarkup'] .
'</textarea>' . '</textarea>' .
'</td>' . '</td>' .
'</tr>' . '</tr>' .