[-] BO: Fix case sensitive issue on search blacklist
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class SearchCore
|
|||||||
$string = preg_replace('/[^\s]-+/', '', $string);
|
$string = preg_replace('/[^\s]-+/', '', $string);
|
||||||
}
|
}
|
||||||
|
|
||||||
$blacklist = Configuration::get('PS_SEARCH_BLACKLIST', $id_lang);
|
$blacklist = Tools::strtolower(Configuration::get('PS_SEARCH_BLACKLIST', $id_lang));
|
||||||
if (!empty($blacklist))
|
if (!empty($blacklist))
|
||||||
{
|
{
|
||||||
$string = preg_replace('/(?<=\s)('.$blacklist.')(?=\s)/Su', '', $string);
|
$string = preg_replace('/(?<=\s)('.$blacklist.')(?=\s)/Su', '', $string);
|
||||||
|
|||||||
Reference in New Issue
Block a user