aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-02-10 23:29:11 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-02-10 23:29:11 +0100
commitb0abf6df883487ffbd12d5410cd03a23fc6bd66c (patch)
treebf8c1b92312e4e3138dc3a0bcee417c7703f55d1 /phpBB/posting.php
parent59ad9401d9db8c6b6612f01f7b295f12c4cdccf7 (diff)
downloadforums-b0abf6df883487ffbd12d5410cd03a23fc6bd66c.tar
forums-b0abf6df883487ffbd12d5410cd03a23fc6bd66c.tar.gz
forums-b0abf6df883487ffbd12d5410cd03a23fc6bd66c.tar.bz2
forums-b0abf6df883487ffbd12d5410cd03a23fc6bd66c.tar.xz
forums-b0abf6df883487ffbd12d5410cd03a23fc6bd66c.zip
[ticket/15079] Parse message before inserting it into drafts table
PHPBB3-15079
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index aa10059796..0920f63888 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);