mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
do not remove multiple newlines for posting message
git-svn-id: file:///svn/phpbb/trunk@4552 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8f4967a228
commit
b2a26d6bf8
1 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ if (($save || isset($_POST['draft_save'])) && $user->data['user_id'] != ANONYMOU
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$subject = request_var('subject', '');
|
$subject = request_var('subject', '');
|
||||||
$message = request_var('message', '');
|
$message = (isset($_POST['message'])) ? htmlspecialchars(trim(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message']))) : '';
|
||||||
|
|
||||||
if ($message != '')
|
if ($message != '')
|
||||||
{
|
{
|
||||||
|
@ -434,7 +434,7 @@ if ($submit || $preview || $refresh)
|
||||||
$subject = phpbb_strtolower($subject);
|
$subject = phpbb_strtolower($subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
$message_parser->message = request_var('message', '');
|
$message_parser->message = (isset($_POST['message'])) ? htmlspecialchars(trim(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message']))) : '';
|
||||||
|
|
||||||
$username = (!empty($_POST['username'])) ? request_var('username', '') : ((!empty($username)) ? $username : '');
|
$username = (!empty($_POST['username'])) ? request_var('username', '') : ((!empty($username)) ? $username : '');
|
||||||
$topic_type = (isset($_POST['topic_type'])) ? (int) $_POST['topic_type'] : (($mode != 'post') ? $topic_type : POST_NORMAL);
|
$topic_type = (isset($_POST['topic_type'])) ? (int) $_POST['topic_type'] : (($mode != 'post') ? $topic_type : POST_NORMAL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue