aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-09-09 07:02:57 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-09-09 07:02:57 +0000
commita363e8dcdb52558366d6242caf3d22b93cb8ce09 (patch)
treeb5fed98e5b7e96c019073b70b38fa55d3945ef71 /phpBB/includes/functions.php
parent08161e09e21b0e002325550db8bf653a72c8d362 (diff)
downloadforums-a363e8dcdb52558366d6242caf3d22b93cb8ce09.tar
forums-a363e8dcdb52558366d6242caf3d22b93cb8ce09.tar.gz
forums-a363e8dcdb52558366d6242caf3d22b93cb8ce09.tar.bz2
forums-a363e8dcdb52558366d6242caf3d22b93cb8ce09.tar.xz
forums-a363e8dcdb52558366d6242caf3d22b93cb8ce09.zip
fixed censoring (quote post, word boundaries, attachment comments)
git-svn-id: file:///svn/phpbb/trunk@4492 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 c322c58779..f55eda4b5e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -739,7 +739,7 @@ function obtain_word_list(&$censors)
{
do
{
- $censors['match'][] = '#(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')#i';
+ $censors['match'][] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i';
$censors['replace'][] = $row['replacement'];
}
while ($row = $db->sql_fetchrow($result));