From cbb2ef79ff1eeb27c064c0094de2649375c99b5b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 7 Feb 2007 15:34:39 +0000 Subject: [PATCH] Escape exclamation marks for now. --- includes/SearchPostgres.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.20.1