1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

fixed censoring (quote post, word boundaries, attachment comments)

git-svn-id: file:///svn/phpbb/trunk@4492 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-09-09 07:02:57 +00:00
parent 08161e09e2
commit a363e8dcdb
3 changed files with 18 additions and 11 deletions

View File

@@ -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));