mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 04:50:51 +02:00
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:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user