// Fix #PSCFV-4017
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17338 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -973,6 +973,8 @@ class ToolsCore
|
||||
$str = mb_strtolower($str, 'utf-8');
|
||||
|
||||
$str = trim($str);
|
||||
if (!function_exists('mb_strtolower'))
|
||||
$str = Tools::replaceAccentedChars($str);
|
||||
|
||||
// Remove all non-whitelist chars.
|
||||
$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str);
|
||||
|
||||
Reference in New Issue
Block a user