Merge branch 'ticket/11288' into ticket/11288-develop

* ticket/11288:
  [ticket/11288] Handle +,- without preceeding whitespace characters
This commit is contained in:
Dhruv 2014-03-09 22:00:06 +05:30
commit 1688d88059

View file

@ -326,6 +326,12 @@ class fulltext_native extends \phpbb\search\base
$this->db->sql_freeresult($result);
}
// Handle +, - without preceeding whitespace character
$match = array('#(\S)\+#', '#(\S)-#');
$replace = array('$1 +', '$1 +');
$keywords = preg_replace($match, $replace, $keywords);
// now analyse the search query, first split it using the spaces
$query = explode(' ', $keywords);