From: River Tarnell Date: Sat, 25 Sep 2004 09:57:03 +0000 (+0000) Subject: disallow empty searches X-Git-Tag: 1.5.0alpha1~1803 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=bdb843ade7d2c98425982fc912ecce46eb530a89;p=lhc%2Fweb%2Fwiklou.git disallow empty searches --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index a04c3ea6fd..930ab83160 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -250,6 +250,9 @@ class SearchEngine { function parseQuery() { global $wgDBmysql4; + if (strlen($this->filteredText) < 1) + return MW_SEARCH_BAD_QUERY; + if( $wgDBmysql4 ) { # Use cleaner boolean search if available return $this->parseQuery4();