1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

Fix bad word cockup ... oh look the censor failed and let cockup through, oh, and again ... geez sourceforge needs better censors for its CVS system

git-svn-id: file:///svn/phpbb/trunk@2426 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-25 12:39:17 +00:00
parent 111092c673
commit 5b176a2eff

View File

@ -445,8 +445,8 @@ function obtain_word_list(&$orig_word, &$replacement_word)
{
do
{
$orig_word[] = '#(\W)' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . '(\W)#is';
$replacement_word[] = '\1' . $row['replacement'] . '\2';
$orig_word[] = "#\b(" . str_replace("\*", "\w*?", phpbb_preg_quote($row['word'], "#")) . ")\b#i";
$replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );
}