mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +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:
parent
111092c673
commit
5b176a2eff
@ -445,8 +445,8 @@ function obtain_word_list(&$orig_word, &$replacement_word)
|
|||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$orig_word[] = '#(\W)' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . '(\W)#is';
|
$orig_word[] = "#\b(" . str_replace("\*", "\w*?", phpbb_preg_quote($row['word'], "#")) . ")\b#i";
|
||||||
$replacement_word[] = '\1' . $row['replacement'] . '\2';
|
$replacement_word[] = $row['replacement'];
|
||||||
}
|
}
|
||||||
while ( $row = $db->sql_fetchrow($result) );
|
while ( $row = $db->sql_fetchrow($result) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user