1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

disallow yet another character (there are more, of course - but we do not add every character)

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@8361 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-02-01 12:49:38 +00:00
parent e27bed357b
commit cf02e7c01e
2 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ p,ul,td {font-size:10pt;}
<li>[Fix] Fixed html output in make_forum_select if no forums present (Bug #436)</li>
<li>[Fix] Fixed spelling error(s) in lang_admin.php (Bug #7172, #6978)</li>
<li>[Fix] Correctly display censored words in admin panel (Bug #12271)</li>
<li>[Fix] Do not allow soft hyphen \xAD in usernames (reported by Bander00)</li>
</ul>
<a name="2021"></a><h3 class="h3">l.ii. Changes since 2.0.21</h3>

View File

@ -101,7 +101,7 @@ function validate_username($username)
$db->sql_freeresult($result);
// Don't allow " and ALT-255 in username.
if (strstr($username, '"') || strstr($username, '&quot;') || strstr($username, chr(160)))
if (strstr($username, '"') || strstr($username, '&quot;') || strstr($username, chr(160)) || strstr($username, chr(173)))
{
return array('error' => true, 'error_msg' => $lang['Username_invalid']);
}