mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
git-svn-id: file:///svn/phpbb/trunk@6962 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user