From 4725c6dbea98fa6f3d0b74192c7c3733c3dda80e Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 3 Dec 2001 12:46:32 +0000 Subject: [PATCH] Should fix bug #487886 bad word preg now uses # and quotes # too git-svn-id: file:///svn/phpbb/trunk@1504 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++-- 1 file 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']; } }