From a363e8dcdb52558366d6242caf3d22b93cb8ce09 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 9 Sep 2003 07:02:57 +0000 Subject: fixed censoring (quote post, word boundaries, attachment comments) git-svn-id: file:///svn/phpbb/trunk@4492 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c322c58779..f55eda4b5e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -739,7 +739,7 @@ function obtain_word_list(&$censors) { do { - $censors['match'][] = '#(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')#i'; + $censors['match'][] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i'; $censors['replace'][] = $row['replacement']; } while ($row = $db->sql_fetchrow($result)); -- cgit v1.2.1