2022-03-30, 09:13 AM
When try to search string like
This not happen using Fulltext
Way to reproduce :
mybb Version 1.8.30
The fix can be : in function_search.php
https://github.com/mybb/mybb/blob/368186...#L292-L303
Adding space, if it's still needed (i check without : seems OK too …)
https://github.com/mybb/mybb/pull/4532
andré
or orges
if search type is set to standard : receive an error about minimal number of character.This not happen using Fulltext
Way to reproduce :
- Check search setting to set type to "standard"
- Go to forum, put andré in quick search
- Enter : look at result
mybb Version 1.8.30
The fix can be : in function_search.php
https://github.com/mybb/mybb/blob/368186...#L292-L303
Adding space, if it's still needed (i check without : seems OK too …)
// Search for "and" or "or" (followed by space) and remove if it's at the beginning
$keywords = trim($keywords);
if(my_strpos($keywords, "or ") === 0)
{
$keywords = substr_replace($keywords, "", 0, 3);
$keywords = " ".$keywords;
}
if(my_strpos($keywords, "and ") === 0)
{
$keywords = substr_replace($keywords, "", 0, 4);
$keywords = " ".$keywords;
}
https://github.com/mybb/mybb/pull/4532