diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-19 00:08:18 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-19 00:08:18 +0000 |
commit | 14b6e1447da88a3f3174058400368c2ba7a22613 (patch) | |
tree | 56e2aae4fd33aa91c08e73a911e9aad21e7ce720 | |
parent | 82ace9f077decc5e3634272cf5ba88e41b15be33 (diff) | |
download | forums-14b6e1447da88a3f3174058400368c2ba7a22613.tar forums-14b6e1447da88a3f3174058400368c2ba7a22613.tar.gz forums-14b6e1447da88a3f3174058400368c2ba7a22613.tar.bz2 forums-14b6e1447da88a3f3174058400368c2ba7a22613.tar.xz forums-14b6e1447da88a3f3174058400368c2ba7a22613.zip |
phpbb_preg_quote that bad word replace ... just in case ...
git-svn-id: file:///svn/phpbb/trunk@2331 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions.php | 2 |
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) ); |