aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b94452eff1..7be4eb6342 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -445,8 +445,8 @@ function obtain_word_list(&$orig_word, &$replacement_word)
{
do
{
- $orig_word[] = '#(\W)' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . '(\W)#is';
- $replacement_word[] = '\1' . $row['replacement'] . '\2';
+ $orig_word[] = "#\b(" . str_replace("\*", "\w*?", phpbb_preg_quote($row['word'], "#")) . ")\b#i";
+ $replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );
}