aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-07-22 22:02:10 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-07-22 22:02:10 +0000
commit24e9d1e53f9005059a3aa2ec7f74d441d7eb504e (patch)
treecd3b729cc2e64b4f8ac1bcb0a202d4366efc4ccb
parent41fa3b71e6dfa89bd329d6eeb251f10771165766 (diff)
downloadforums-24e9d1e53f9005059a3aa2ec7f74d441d7eb504e.tar
forums-24e9d1e53f9005059a3aa2ec7f74d441d7eb504e.tar.gz
forums-24e9d1e53f9005059a3aa2ec7f74d441d7eb504e.tar.bz2
forums-24e9d1e53f9005059a3aa2ec7f74d441d7eb504e.tar.xz
forums-24e9d1e53f9005059a3aa2ec7f74d441d7eb504e.zip
handle newlines
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9837 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php3
1 files changed, 2 insertions, 1 deletions
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";
}
}