aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-13 23:20:26 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-13 23:20:26 +0000
commit25711806b398fe404c281730adccd5a82793be16 (patch)
tree05b163cdd6f8651f785146b29e6b7c344a8ea211 /phpBB/posting.php
parent39dd567f90bb5a4f688301b26e1dfaf691cd53a4 (diff)
downloadforums-25711806b398fe404c281730adccd5a82793be16.tar
forums-25711806b398fe404c281730adccd5a82793be16.tar.gz
forums-25711806b398fe404c281730adccd5a82793be16.tar.bz2
forums-25711806b398fe404c281730adccd5a82793be16.tar.xz
forums-25711806b398fe404c281730adccd5a82793be16.zip
$message is now processed in its unslashed form. Should not break anything...
git-svn-id: file:///svn/phpbb/trunk@3831 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 3bdf57213f..28a70170ba 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -445,7 +445,7 @@ if (($submit) || ($preview) || ($refresh))
$subject = phpbb_strtolower($subject);
}
- $message_parser->message = (!empty($_POST['message'])) ? trim($_POST['message']) : '';
+ $message_parser->message = (!empty($_POST['message'])) ? trim(stripslashes($_POST['message'])) : '';
$username = (!empty($_POST['username'])) ? trim($_POST['username']) : '';
$topic_type = (!empty($_POST['topic_type'])) ? intval($_POST['topic_type']) : POST_NORMAL;
$icon_id = (!empty($_POST['icon'])) ? intval($_POST['icon']) : 0;
@@ -649,7 +649,7 @@ if (($submit) || ($preview) || ($refresh))
submit_post($mode, $message_parser->message, $subject, $username, $topic_type, $message_parser->bbcode_uid, $poll, $attachment_data, $post_data);
}
- $post_text = stripslashes($message_parser->message);
+ $post_text = $message_parser->message;
$post_subject = $topic_title = stripslashes($subject);
}
@@ -674,7 +674,7 @@ if ($preview)
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
$bbcode = new bbcode($message_parser->bbcode_uid, $message_parser->bbcode_bitfield);
- $preview_message = format_display(stripslashes($message_parser->message), $enable_html, $enable_bbcode, $message_parser->bbcode_uid, $enable_urls, $enable_smilies, $enable_sig);
+ $preview_message = format_display($message_parser->message, $enable_html, $enable_bbcode, $message_parser->bbcode_uid, $enable_urls, $enable_smilies, $enable_sig);
$preview_subject = (sizeof($censors)) ? preg_replace($censors['match'], $censors['replace'], $subject) : $subject;