1
0
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:
Meik Sievertsen 2007-02-03 11:59:16 +00:00
parent 9bf3bd0cbc
commit 8061b5b614
2 changed files with 11 additions and 1 deletions

View File

@ -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(

View File

@ -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);
}
?>