aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authornatec <natec@users.sourceforge.net>2001-12-11 08:43:05 +0000
committernatec <natec@users.sourceforge.net>2001-12-11 08:43:05 +0000
commitf0bf32c5c1d7bcacab86e0623b0600c2a694303c (patch)
treecdbc1ec6a224831de763f45df775439e8f5897cf /phpBB/viewtopic.php
parent46deea9011ccb78637bbcd355f4cba352b0980fd (diff)
downloadforums-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/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index f132455c0d..9116812e3c 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -548,7 +548,7 @@ if( isset($HTTP_GET_VARS['highlight']) )
{
if( trim($words[$i]) != "" )
{
- $highlight_match[] = "#\b(" . str_replace("\*", ".*?", preg_quote($words[$i], "#")) . ")(?!.*?<\/a>)(?!.*?\[/url\])\b#i";
+ $highlight_match[] = "#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($words[$i], "#")) . ")(?!.*?<\/a>)(?!.*?\[/url\])\b#i";
$highlight_replace[] = "<font color=\"#" . $theme['fontcolor3'] . "\"><b>\\1</b></font>";
}
}