diff options
| author | Oliver Schramm <oliver.schramm97@gmail.com> | 2018-09-14 14:54:20 +0200 |
|---|---|---|
| committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2018-09-14 14:54:51 +0200 |
| commit | 0d7c33c1afd2595ca4f5569af69d1514bec29b35 (patch) | |
| tree | fb3dbc332b723ef1d6c5c7867050bcddb2aadaf3 /phpBB/includes/ucp/ucp_pm_compose.php | |
| parent | db71ca7db10adf83b3f65654058a2d9781640532 (diff) | |
| download | forums-0d7c33c1afd2595ca4f5569af69d1514bec29b35.tar forums-0d7c33c1afd2595ca4f5569af69d1514bec29b35.tar.gz forums-0d7c33c1afd2595ca4f5569af69d1514bec29b35.tar.bz2 forums-0d7c33c1afd2595ca4f5569af69d1514bec29b35.tar.xz forums-0d7c33c1afd2595ca4f5569af69d1514bec29b35.zip | |
[ticket/15329] Parse drafts before saving them (and decode)
PHPBB3-15329
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index bf18e76568..bc43b5d1fe 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -659,13 +659,16 @@ function compose_pm($id, $mode, $action, $user_folders = array()) { if (confirm_box(true)) { + $message_parser->message = $message; + $message_parser->parse($bbcode_status, $url_status, $smilies_status, $img_status, $flash_status, true, $url_status); + $sql = 'INSERT INTO ' . DRAFTS_TABLE . ' ' . $db->sql_build_array('INSERT', array( 'user_id' => $user->data['user_id'], 'topic_id' => 0, 'forum_id' => 0, 'save_time' => $current_time, 'draft_subject' => $subject, - 'draft_message' => $message + 'draft_message' => $message_parser->message, ) ); $db->sql_query($sql); |
