mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/11288] Handle +,- without preceeding whitespace characters
PHPBB3-11288
This commit is contained in:
@@ -233,6 +233,12 @@ class fulltext_native extends search_backend
|
|||||||
}
|
}
|
||||||
unset($exact_words);
|
unset($exact_words);
|
||||||
|
|
||||||
|
// 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
|
// now analyse the search query, first split it using the spaces
|
||||||
$query = explode(' ', $keywords);
|
$query = explode(' ', $keywords);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user