mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00: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:
parent
9cdb898106
commit
4725c6dbea
1 changed files with 2 additions and 2 deletions
|
@ -879,9 +879,9 @@ function obtain_word_list(&$orig_word, &$replacement_word)
|
||||||
|
|
||||||
for($i = 0; $i < count($word_list); $i++)
|
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'];
|
$replacement_word[] = $word_list[$i]['replacement'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue