diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 293c5937be8..d4fae150c41 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -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;