From 24e9d1e53f9005059a3aa2ec7f74d441d7eb504e Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Wed, 22 Jul 2009 22:02:10 +0000 Subject: [PATCH] handle newlines git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9837 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 9f7fefd81c..14ee550ac9 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1193,7 +1193,8 @@ if ($mode == 'quote' && !$submit && !$preview && !$refresh) } else { - $message = '> ' . utf8_wordwrap(censor_text(trim($message_parser->message)), 75, "\n> "); + $message = '> ' . utf8_wordwrap(censor_text(trim($message_parser->message)), 75, "\n"); + $message = str_replace("\n", "\n> ", $message); $message_parser->message = $post_data['quote_username'] . " " . $user->lang['WROTE'] . " :\n" . $message . "\n"; } }