Patrick R. Michaud
pmichaud at pobox.com
Wed Jul 27 20:30:09 CDT 2005
On Thu, Jul 28, 2005 at 01:14:31PM +1200, John Rankin wrote:
> I believe I might know what the problem is!
> Are you using the searchterms recipe to highlight
> search terms in the resulting pages?
> If so, try changing
> $words[$w]++; to $words[preg_replace('/^.*?\\//','',$w)]++;
Oh, that is very likely to be a problem! In fact, it's not just
slashes that could cause problems, but any regular expression
character. So instead try changing $words[$w]++; to
Or, I just made this fix to searchterms.php on pmwiki.org --
so you can just redownload and reinstall the script.
More information about the pmwiki-users