mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-21 14:59:46 +02:00
git-svn-id: file:///svn/phpbb/trunk@6962 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9bf3bd0cbc
commit
8061b5b614
@ -408,7 +408,7 @@ if (!$get_info)
|
||||
'target' => DISALLOW_TABLE,
|
||||
'query_first' => $convert->truncate_statement . DISALLOW_TABLE,
|
||||
|
||||
array('disallow_username', 'disallow.disallow_username', 'phpbb_set_encoding'),
|
||||
array('disallow_username', 'disallow.disallow_username', 'phpbb_disallowed_username'),
|
||||
),
|
||||
|
||||
array(
|
||||
|
@ -1446,4 +1446,14 @@ function phpbb_inactive_reason()
|
||||
return INACTIVE_REGISTER;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjust 2.0.x disallowed names to 3.0.x format
|
||||
*/
|
||||
function phpbb_disallowed_username($username)
|
||||
{
|
||||
// Replace * with %
|
||||
$username = phpbb_set_default_encoding(str_replace('*', '%', $username));
|
||||
return utf8_htmlspecialchars($username);
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user