aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-25 12:39:17 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-25 12:39:17 +0000
commit5b176a2effab90fa28a91fbbd9821453d562d1b1 (patch)
treee9e6f2187bcb8ce765f89064dc5c6447d64aa19b
parent111092c6737e7046350824237fbac0ff5715bfd3 (diff)
downloadforums-5b176a2effab90fa28a91fbbd9821453d562d1b1.tar
forums-5b176a2effab90fa28a91fbbd9821453d562d1b1.tar.gz
forums-5b176a2effab90fa28a91fbbd9821453d562d1b1.tar.bz2
forums-5b176a2effab90fa28a91fbbd9821453d562d1b1.tar.xz
forums-5b176a2effab90fa28a91fbbd9821453d562d1b1.zip
Fix bad word cockup ... oh look the censor failed and let cockup through, oh, and again ... geez sourceforge needs better censors for its CVS system
git-svn-id: file:///svn/phpbb/trunk@2426 89ea8834-ac86-4346-8a33-228a782c2dd0
-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) );
}