aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache.php
diff options
context:
space:
mode:
authorRuslan Uzdenov <rxu@mail.ru>2009-07-07 12:59:30 +0000
committerRuslan Uzdenov <rxu@mail.ru>2009-07-07 12:59:30 +0000
commiteb4eee77ac5b870966a00b4e23ff14f204e18c68 (patch)
tree19e291279217d7855bc5849e7d603227c55decd3 /phpBB/includes/cache.php
parent4991cae3a1f5d3bcb435ae65bd63d4a705aa0653 (diff)
downloadforums-eb4eee77ac5b870966a00b4e23ff14f204e18c68.tar
forums-eb4eee77ac5b870966a00b4e23ff14f204e18c68.tar.gz
forums-eb4eee77ac5b870966a00b4e23ff14f204e18c68.tar.bz2
forums-eb4eee77ac5b870966a00b4e23ff14f204e18c68.tar.xz
forums-eb4eee77ac5b870966a00b4e23ff14f204e18c68.zip
Further word censor fix to work with UTF8 correctly
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9726 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/cache.php')
-rw-r--r--phpBB/includes/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php
index 392f1377da..1effada666 100644
--- a/phpBB/includes/cache.php
+++ b/phpBB/includes/cache.php
@@ -86,7 +86,7 @@ class cache extends acm
{
if ((version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>='))) && @preg_match('/\p{L}/u', 'a') !== false)
{
- $censors['match'][] = '#(?<!\p{L})(' . str_replace('\*', '\p{L}*?', preg_quote($row['word'], '#')) . ')(?!\p{L})#u';
+ $censors['match'][] = '#(?<![\p{Nd}\p{L}_])(' . str_replace('\*', '[\p{Nd}\p{L}_]*?', preg_quote($row['word'], '#')) . ')(?![\p{Nd}\p{L}_])#u';
}
else
{