Index: trunk/phase3/includes/SearchEngine.php |
— | — | @@ -250,6 +250,9 @@ |
251 | 251 | |
252 | 252 | function parseQuery() { |
253 | 253 | global $wgDBmysql4; |
| 254 | + if (strlen($this->filteredText) < 1) |
| 255 | + return MW_SEARCH_BAD_QUERY; |
| 256 | + |
254 | 257 | if( $wgDBmysql4 ) { |
255 | 258 | # Use cleaner boolean search if available |
256 | 259 | return $this->parseQuery4(); |