1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Fixed bug 478218 -- [ and ] in usernames qith quote= bbcode. Usernames can no longer contain the double-quote character. Also removed a dupe from lang_main file.

git-svn-id: file:///svn/phpbb/trunk@1441 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
natec
2001-11-25 23:31:04 +00:00
parent a25d1820f5
commit dbb0ce8eee
6 changed files with 15 additions and 10 deletions

View File

@@ -476,6 +476,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
//
// Check to see if the username has been taken, or if it is disallowed.
// Also checks if it includes the " character, which we don't allow in usernames.
// Used for registering, changing names, and posting anonymously with a username
//
function validate_username($username)
@@ -550,6 +551,12 @@ function validate_username($username)
}
}
// Don't allow " in username.
if ( strstr($username, '"') )
{
return FALSE;
}
return(TRUE);
}