Escape exclamation marks for now.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 7 Feb 2007 15:34:39 +0000 (15:34 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 7 Feb 2007 15:34:39 +0000 (15:34 +0000)
includes/SearchPostgres.php

index 293c593..d4fae15 100644 (file)
@@ -81,6 +81,7 @@ class SearchPostgres extends SearchEngine {
                        wfDebug( "Can't understand search query '{$this->filteredText}'\n" );
                }
 
+               $searchon = preg_replace('/!/','\\!',$searchon);
                $searchon = preg_replace('/(\s+)/','&',$searchon);
                $searchon = $this->db->strencode( $searchon );
                return $searchon;