r21634 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21633‎ | r21634 | r21635 >
Date:19:35, 26 April 2007
Author:greg
Status:old
Tags:
Comment:
Don't try to highlight non-words.
Modified paths:
  • /trunk/phase3/includes/SearchPostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SearchPostgres.php
@@ -83,7 +83,8 @@
8484 else {
8585 $searchstring .= " & $terms[2]";
8686 $safeterm = preg_replace('/\W+/', '', $terms[2]);
87 - $this->searchTerms[$safeterm] = $safeterm;
 87+ if (strlen($safeterm))
 88+ $this->searchTerms[$safeterm] = $safeterm;
8889 }
8990 }
9091 }