aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-21 19:43:44 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-21 19:43:44 +0000
commit213a83b5194bc430578343142e8cde7a3cc96517 (patch)
treecd3b4b805ddb58e8e431ef6fc468c60e7d537dfb /phpBB/includes/functions.php
parent2602b11894d3e93aa8b059c2a6585241689d9643 (diff)
downloadforums-213a83b5194bc430578343142e8cde7a3cc96517.tar
forums-213a83b5194bc430578343142e8cde7a3cc96517.tar.gz
forums-213a83b5194bc430578343142e8cde7a3cc96517.tar.bz2
forums-213a83b5194bc430578343142e8cde7a3cc96517.tar.xz
forums-213a83b5194bc430578343142e8cde7a3cc96517.zip
#8254
git-svn-id: file:///svn/phpbb/trunk@7030 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index d3638f1941..6d9623245a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2132,7 +2132,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
function get_context($text, $words, $length = 400)
{
// first replace all whitespaces with single spaces
- $text = preg_replace('/\s+/u', ' ', $text);
+ $text = preg_replace('/ +/', ' ', strtr($text, "\t\n\r\x0C ", ' '), $text);
$word_indizes = array();
if (sizeof($words))