mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@6962 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9bf3bd0cbc
commit
8061b5b614
2 changed files with 11 additions and 1 deletions
|
@ -408,7 +408,7 @@ if (!$get_info)
|
||||||
'target' => DISALLOW_TABLE,
|
'target' => DISALLOW_TABLE,
|
||||||
'query_first' => $convert->truncate_statement . 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(
|
array(
|
||||||
|
|
|
@ -1446,4 +1446,14 @@ function phpbb_inactive_reason()
|
||||||
return INACTIVE_REGISTER;
|
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…
Add table
Reference in a new issue