1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

fixed: message post storage. We do not hold the parsed message, only the decoded one for displaying within the textarea.

git-svn-id: file:///svn/phpbb/trunk@4094 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-06-07 16:37:16 +00:00
parent 7dd1ec0070
commit f31b414220
2 changed files with 9 additions and 8 deletions

View File

@@ -646,7 +646,7 @@ if ($submit || $preview || $refresh)
$message_md5 = md5($message_parser->message);
// Check checksum ... don't re-parse message if the same
if ($mode != 'edit' || $message_md5 != $post_checksum || $status_switch)
if ($mode != 'edit' || $message_md5 != $post_checksum || $status_switch || $preview)
{
// Parse message
if ($result = $message_parser->parse($enable_html, $enable_bbcode, $enable_urls, $enable_smilies, $img_status, $flash_status))
@@ -802,6 +802,7 @@ if ($submit || $preview || $refresh)
'bbcode_bitfield' => $message_parser->bbcode_bitfield
);
echo ";<pre>".$message_parser->message."</pre>";
submit_post($mode, $message_parser->message, $subject, $username, $topic_type, $message_parser->bbcode_uid, $poll, $message_parser->attachment_data, $message_parser->filename_data, $post_data);
}