From: Greg Sabino Mullane Date: Wed, 7 Feb 2007 15:34:39 +0000 (+0000) Subject: Escape exclamation marks for now. X-Git-Tag: 1.31.0-rc.0~54109 X-Git-Url: https://git.cyclocoop.org/admin//%22%7B%7Blocalurle:Special:Imagelist%7D%7D/%22?a=commitdiff_plain;h=cbb2ef79ff1eeb27c064c0094de2649375c99b5b;p=lhc%2Fweb%2Fwiklou.git Escape exclamation marks for now. --- diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 293c5937be..d4fae150c4 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;