aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-07 16:49:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-07 16:49:44 +0000
commitc40783e6a24f56818407e824ca847565d222b542 (patch)
treeeab83cfe2f38ea74ecc936fe8cce3105e2944275 /phpBB/includes/functions.php
parenteac1b028430415a7fd72f55837f09350fcb4e3b4 (diff)
downloadforums-c40783e6a24f56818407e824ca847565d222b542.tar
forums-c40783e6a24f56818407e824ca847565d222b542.tar.gz
forums-c40783e6a24f56818407e824ca847565d222b542.tar.bz2
forums-c40783e6a24f56818407e824ca847565d222b542.tar.xz
forums-c40783e6a24f56818407e824ca847565d222b542.zip
strpos...
git-svn-id: file:///svn/phpbb/trunk@6457 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 4bb99f737d..f491e45caf 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2064,7 +2064,7 @@ function get_context($text, $words, $length = 400)
{
if (preg_match('#(?:[^\w]|^)(' . str_replace('\*', '\w*?', preg_quote($word, '#')) . ')(?:[^\w]|$)#i', $text, $match))
{
- $pos = strpos($text, $match[1]);
+ $pos = utf8_strpos($text, $match[1]);
if ($pos !== false)
{
$word_indizes[] = $pos;