aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 11ca9fc642..9e8b72d4dd 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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) );