diff options
| author | natec <natec@users.sourceforge.net> | 2001-12-11 08:43:05 +0000 |
|---|---|---|
| committer | natec <natec@users.sourceforge.net> | 2001-12-11 08:43:05 +0000 |
| commit | f0bf32c5c1d7bcacab86e0623b0600c2a694303c (patch) | |
| tree | cdbc1ec6a224831de763f45df775439e8f5897cf /phpBB/posting.php | |
| parent | 46deea9011ccb78637bbcd355f4cba352b0980fd (diff) | |
| download | forums-f0bf32c5c1d7bcacab86e0623b0600c2a694303c.tar forums-f0bf32c5c1d7bcacab86e0623b0600c2a694303c.tar.gz forums-f0bf32c5c1d7bcacab86e0623b0600c2a694303c.tar.bz2 forums-f0bf32c5c1d7bcacab86e0623b0600c2a694303c.tar.xz forums-f0bf32c5c1d7bcacab86e0623b0600c2a694303c.zip | |
bug #488067: no, preg_quote() didn't always have 2 args.
git-svn-id: file:///svn/phpbb/trunk@1553 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 32fc055f4e..200971dd00 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -70,7 +70,7 @@ function clean_words($entry, &$stopword_list, &$synonym_list) for ($j = 0; $j < count($stopword_list); $j++) { $filter_word = trim(strtolower($stopword_list[$j])); - $entry = preg_replace("/\b" . preg_quote($filter_word, "/") . "\b/is", " ", $entry); + $entry = preg_replace("/\b" . phpbb_preg_quote($filter_word, "/") . "\b/is", " ", $entry); } } @@ -79,7 +79,7 @@ function clean_words($entry, &$stopword_list, &$synonym_list) for ($j = 0; $j < count($synonym_list); $j++) { list($replace_synonym, $match_synonym) = split(" ", trim(strtolower($synonym_list[$j]))); - $entry = preg_replace("/\b" . preg_quote(trim($match_synonym), "/") . "\b/is", " " . trim($replace_synonym) . " ", $entry); + $entry = preg_replace("/\b" . phpbb_preg_quote(trim($match_synonym), "/") . "\b/is", " " . trim($replace_synonym) . " ", $entry); } } |
