diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-10-12 09:13:04 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-10-12 09:13:04 +0000 |
commit | 98bd5b74f274925bd50aaefc894c3b4927d2ac1a (patch) | |
tree | f51c1a5bf4dadd070e489c814ab183e688f3ccbe /phpBB/includes/message_parser.php | |
parent | 7924d903b08967428656b2b53557063e55a15735 (diff) | |
download | forums-98bd5b74f274925bd50aaefc894c3b4927d2ac1a.tar forums-98bd5b74f274925bd50aaefc894c3b4927d2ac1a.tar.gz forums-98bd5b74f274925bd50aaefc894c3b4927d2ac1a.tar.bz2 forums-98bd5b74f274925bd50aaefc894c3b4927d2ac1a.tar.xz forums-98bd5b74f274925bd50aaefc894c3b4927d2ac1a.zip |
optimized update_last_post_information query.
git-svn-id: file:///svn/phpbb/trunk@4573 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r-- | phpBB/includes/message_parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 89b95de418..2ab41d4df5 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -683,7 +683,7 @@ class parse_message $error = array(); $num_attachments = count($this->attachment_data); - $this->filename_data['filecomment'] = request_var('filecomment', ''); + $this->filename_data['filecomment'] = preg_replace('#&(\#[0-9]+;)#', '&\1', request_var('filecomment', '')); $this->filename_data['filename'] = ($_FILES['fileupload']['name'] != 'none') ? trim($_FILES['fileupload']['name']) : ''; $add_file = (isset($_POST['add_file'])) ? TRUE : FALSE; @@ -773,7 +773,7 @@ class parse_message foreach ($actual_comment_list as $index => $entry) { - $this->attachment_data[$index]['comment'] = $entry; + $this->attachment_data[$index]['comment'] = preg_replace('#&(\#[0-9]+;)#', '&\1', $entry); } } |