mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 22:51:23 +02:00
preg_quote badword ... don't use # in your bad word list(!)
git-svn-id: file:///svn/phpbb/trunk@2263 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -717,7 +717,7 @@ function obtain_word_list(&$orig_word, &$replacement_word)
|
||||
{
|
||||
do
|
||||
{
|
||||
$orig_word[] = "#\b(" . str_replace("*", "\w*?", $row['word']) . ")\b#is";
|
||||
$orig_word[] = "#\b(" . str_replace("\*", "\w*?", preg_quote($row['word'])) . ")\b#is";
|
||||
$replacement_word[] = $row['replacement'];
|
||||
}
|
||||
while ( $row = $db->sql_fetchrow($result) );
|
||||
|
Reference in New Issue
Block a user