Should fix bug #487886 bad word preg now uses # and quotes # too

git-svn-id: file:///svn/phpbb/trunk@1504 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-12-03 12:46:32 +00:00
parent 9cdb898106
commit 4725c6dbea

View file

@ -879,9 +879,9 @@ function obtain_word_list(&$orig_word, &$replacement_word)
for($i = 0; $i < count($word_list); $i++)
{
$word = str_replace("\*", "\w*?", preg_quote($word_list[$i]['word']));
$word = str_replace("\*", "\w*?", preg_quote($word_list[$i]['word'], "#"));
$orig_word[] = "/\b(" . $word . ")\b/i";
$orig_word[] = "#\b(" . $word . ")\b#i";
$replacement_word[] = $word_list[$i]['replacement'];
}
}