diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-04-18 23:19:54 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-04-18 23:19:54 +0200 |
commit | bd220f233ab7a3142baa57c7a8220aad3ee943b4 (patch) | |
tree | d18c5b6c5400b19dfa2b24c39f5da2cbb8320776 /phpBB/posting.php | |
parent | 4cbf619fd597bedb8b61291928869ec6bad353f3 (diff) | |
parent | b0abf6df883487ffbd12d5410cd03a23fc6bd66c (diff) | |
download | forums-bd220f233ab7a3142baa57c7a8220aad3ee943b4.tar forums-bd220f233ab7a3142baa57c7a8220aad3ee943b4.tar.gz forums-bd220f233ab7a3142baa57c7a8220aad3ee943b4.tar.bz2 forums-bd220f233ab7a3142baa57c7a8220aad3ee943b4.tar.xz forums-bd220f233ab7a3142baa57c7a8220aad3ee943b4.zip |
Merge pull request #4693 from marc1706/ticket/15079
[ticket/15079] Parse message before inserting it into drafts table
* github.com:phpbb/phpbb:
[ticket/15079] Parse message before inserting it into drafts table
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 21783b070b..6d4c3cb395 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -694,13 +694,16 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && ( { if (confirm_box(true)) { + $message_parser->message = $message; + $message_parser->parse($post_data['enable_bbcode'], ($config['allow_post_links']) ? $post_data['enable_urls'] : false, $post_data['enable_smilies'], $img_status, $flash_status, $quote_status, $config['allow_post_links']); + $sql = 'INSERT INTO ' . DRAFTS_TABLE . ' ' . $db->sql_build_array('INSERT', array( 'user_id' => (int) $user->data['user_id'], 'topic_id' => (int) $topic_id, 'forum_id' => (int) $forum_id, 'save_time' => (int) $current_time, 'draft_subject' => (string) $subject, - 'draft_message' => (string) $message) + 'draft_message' => (string) $message_parser->message) ); $db->sql_query($sql); |