mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
phpbb_preg_quote that bad word replace ... just in case ...
git-svn-id: file:///svn/phpbb/trunk@2331 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -445,7 +445,7 @@ function obtain_word_list(&$orig_word, &$replacement_word)
|
||||
{
|
||||
do
|
||||
{
|
||||
$orig_word[] = '#\W(' . str_replace('\*', '\w*?', preg_quote($row['word'])) . ')\W#is';
|
||||
$orig_word[] = '#\W(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word']), "#") . ')\W#is';
|
||||
$replacement_word[] = $row['replacement'];
|
||||
}
|
||||
while ( $row = $db->sql_fetchrow($result) );
|
||||
|
Reference in New Issue
Block a user