[-] BO: Fix case sensitive issue on search blacklist

This commit is contained in:
Rémi Gaillard committed 2013-02-26 15:23:33 +01:00
1 parent 4953b8219a
commit 3642989f1b
1 file changed
+1 -1
+1 -1
View File
@@ -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);