[dokuwiki] Re: Bug in Highlighting upon return from search engine

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 31 Mar 2008 19:56:35 +0200

On Fri, 28 Mar 2008 17:15:58 -0400
"Todd Augsburger" <todd@xxxxxxxxxxxxxxxx> wrote:

> 
> Now that search highlighting is expected to be passed as an array in
> devel DokuWiki, there's a bug in getGoogleQuery(), which provides a
> string instead. Assuming getGoogleQuery() is used for nothing else:
> 
> in inc/common.php getGoogleQuery() line 1005:
> 
>   $q = 
> join('|',preg_split('/[\s\'"\\\\`()\]\[?:!\.{};,#+*<>\\/]+/',$q,-1,PREG_SPLIT_NO_EMPTY));
> 
> should be replaced with:
> 
>   $q = 
> preg_split('/[\s\'"\\\\`()\]\[?:!\.{};,#+*<>\\/]+/',$q,-1,PREG_SPLIT_NO_EMPTY);

Fixed. Please open a bug report next time, I almost forgot about this
mail.

Andi

-- 
http://www.splitbrain.org

Other related posts: