diff options
author | natec <natec@users.sourceforge.net> | 2001-11-25 23:31:04 +0000 |
---|---|---|
committer | natec <natec@users.sourceforge.net> | 2001-11-25 23:31:04 +0000 |
commit | dbb0ce8eeeeb9091d814e673b047253909c0d8c7 (patch) | |
tree | 910c94ff8472fabd8cb09a083dd67f71408765e7 /phpBB/includes/functions.php | |
parent | a25d1820f584595a8d55398358f4ebfd8e165773 (diff) | |
download | forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.gz forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.bz2 forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.xz forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.zip |
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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 0f4961d6e2..4c93d6a6f7 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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); } |