diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 12:36:31 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 12:36:31 +0000 |
commit | f8528a659c919d7bc1e78c5aacc95e27cddec627 (patch) | |
tree | bb70865f922867a83fa144f315ad40014a982e2b /phpBB/search.php | |
parent | e87f740a9e7a048b7900d92ede04f405a337441c (diff) | |
download | forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.gz forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.bz2 forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.xz forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.zip |
tried to begin adjusting all string functions where applicable - still a *lot* to do.
i hope i catched all relevant sections and did not mess something up.
git-svn-id: file:///svn/phpbb/trunk@6452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index f177a001fb..79a3fb4565 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -616,7 +616,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) while ($row = $db->sql_fetchrow($result)) { $rowset[] = $row; - if (($return_chars == -1) || (strlen($row['post_text']) < $return_chars + 3)) + if (($return_chars == -1) || (utf8_strlen($row['post_text']) < $return_chars + 3)) { $bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']); @@ -777,7 +777,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) $row['post_subject'] = censor_text($row['post_subject']); $message = $row['post_text']; - if (($return_chars != -1) && (strlen($message) >= $return_chars + 3)) + if ($return_chars != -1 && utf8_strlen($message) >= ($return_chars + 3)) { $message = censor_text($message); |