aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-02-15 14:03:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-02-15 14:03:19 +0000
commitb745d5224f44e447fc5ed06d1804e10b58e7afd2 (patch)
treea8035fb95226c4546fe04e5e2f734b030ae1db04 /phpBB/posting.php
parentd8609ba1c60803912c0b9de9c887290d7f6c5f90 (diff)
downloadforums-b745d5224f44e447fc5ed06d1804e10b58e7afd2.tar
forums-b745d5224f44e447fc5ed06d1804e10b58e7afd2.tar.gz
forums-b745d5224f44e447fc5ed06d1804e10b58e7afd2.tar.bz2
forums-b745d5224f44e447fc5ed06d1804e10b58e7afd2.tar.xz
forums-b745d5224f44e447fc5ed06d1804e10b58e7afd2.zip
removed message type from message parser
assign message if specified parse/decode html if enabled validate url git-svn-id: file:///svn/phpbb/trunk@4834 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 97d170586e..325a5f07c9 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -160,7 +160,7 @@ if ($sql)
$db->sql_freeresult($result);
}
- $message_parser = new parse_message(0);
+ $message_parser = new parse_message();
$message_parser->filename_data['filecomment'] = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', request_var('filecomment', ''));
@@ -489,7 +489,7 @@ if ($submit || $preview || $refresh)
$subject = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', $subject);
- $message_parser->message = (isset($_POST['message'])) ? htmlspecialchars(trim(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message']))) : '';
+ $message_parser->message = (isset($_POST['message'])) ? htmlspecialchars(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message'])) : '';
$message_parser->message = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', $message_parser->message);
$username = ($_POST['username']) ? request_var('username', '') : $username;