-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
3.0.11
-
None
In /includes/functions_user.php in function validate_username() we have this:
// generic UTF-8 character types supported?
|
if ((version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>='))) && @preg_match('/\p{L}/u', 'a') !== false)
|
{
|
$pcre = true;
|
}
|
else if (function_exists('mb_ereg_match'))
|
{
|
mb_regex_encoding('UTF-8');
|
$mbstring = true;
|
}
|
Maybe something like $regex_support which can have (constant) values like:
- PHPBB_RE_UTF8 (PCRE supports Unicode)
- PHPBB_RE_MBEREG (as a fallback, multibyte EREG can be used) and
- PHPBB_RE_NONE (fallback on ASCII only).