From 20d18e1a9fec071d6e2e519709b08bacf650d750 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 12 Dec 2004 14:07:02 +0000 Subject: - fix attachment mod errors - make upload path consistent with all other 2.2 path settings - fix "post title wrong after split" bug git-svn-id: file:///svn/phpbb/trunk@5032 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 974d2b7426..a7d6d6f3fc 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -910,7 +910,7 @@ if (!sizeof($error) && $preview) $template->assign_var('S_HAS_ATTACHMENTS', true); $attachment_data = $message_parser->attachment_data; - $unset_attachments = parse_inline_attachments($preview_message, $attachment_data, $update_count, $forum_id); + $unset_attachments = parse_inline_attachments($preview_message, $attachment_data, $update_count, $forum_id, true); foreach ($unset_attachments as $index) { @@ -1667,8 +1667,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u 'topic_id' => $data['topic_id'], 'in_message' => 0, 'poster_id' => $poster_id, - 'physical_filename' => $attach_row['physical_filename'], - 'real_filename' => $attach_row['real_filename'], + 'physical_filename' => basename($attach_row['physical_filename']), + 'real_filename' => basename($attach_row['real_filename']), 'comment' => $attach_row['comment'], 'extension' => $attach_row['extension'], 'mimetype' => $attach_row['mimetype'], -- cgit v1.2.1