diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b1c1f0b95f..897941ee89 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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']; } } |