1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-27 11:04:15 +02:00

Merge remote-tracking branch 'dhruvgoel92/ticket/11288' into develop-olympus

* dhruvgoel92/ticket/11288:
  [ticket/11288] Handle +,- without preceeding whitespace characters
This commit is contained in:
Joas Schilling 2014-03-11 09:46:31 +01:00
commit 214f515e9c

View File

@ -232,6 +232,12 @@ class fulltext_native extends search_backend
$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);