aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-04 13:43:35 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-04 13:43:35 +0000
commit85dc9d45c1540a35c9f1b4e2f33e7825becbd489 (patch)
treee362ae5f3d353e755a68e10ae3dbdd9f0d047b3c /phpBB
parent8e62a19cf43fcf9b549d96428d1abf48139678ef (diff)
downloadforums-85dc9d45c1540a35c9f1b4e2f33e7825becbd489.tar
forums-85dc9d45c1540a35c9f1b4e2f33e7825becbd489.tar.gz
forums-85dc9d45c1540a35c9f1b4e2f33e7825becbd489.tar.bz2
forums-85dc9d45c1540a35c9f1b4e2f33e7825becbd489.tar.xz
forums-85dc9d45c1540a35c9f1b4e2f33e7825becbd489.zip
preg_quote badword ... don't use # in your bad word list(!)
git-svn-id: file:///svn/phpbb/trunk@2263 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-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 f75a9ad941..c6bff2ce34 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -717,7 +717,7 @@ function obtain_word_list(&$orig_word, &$replacement_word)
{
do
{
- $orig_word[] = "#\b(" . str_replace("*", "\w*?", $row['word']) . ")\b#is";
+ $orig_word[] = "#\b(" . str_replace("\*", "\w*?", preg_quote($row['word'])) . ")\b#is";
$replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );