Current time: 05-24-2012, 10:41 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] The User with no name [R] [C-Michael83]
09-12-2008, 04:54 PM
Post: #11
RE: The User with no name
I believe we do trim() and check for blank spaces in usernames and disallow them - This user is probably using a hidden character. We've gone over this before that we can't block every single hidden character in the world without causing other problems.
Visit this user's website Find all posts by this user
09-12-2008, 08:14 PM
Post: #12
RE: The User with no name
I confirmed the bug. Just press the space button three times... =)

[Image: destroyerjf8.jpg]

Give us your feedback about MyBB in this thread and become listed on the MyBB website.
Visit this user's website Find all posts by this user
09-12-2008, 09:39 PM (This post was last modified: 09-12-2008 09:40 PM by Ryan Gordon.)
Post: #13
RE: The User with no name
(09-12-2008 08:14 PM)destroyer Wrote:  I confirmed the bug. Just press the space button three times... =)

I am unable to reproduce on my localhost. We do indeed trim spaces btw. Here was my debug code on inc/datahandler/user.php

PHP Code:
// Fix bad characters
        
$username trim($username);
        
var_dump($username);
        
$username str_replace(array(unicode_chr(160), unicode_chr(173), unicode_chr(0xCA), dec_to_utf8(8238), dec_to_utf8(8237)), array(" ""-"""""""), $username);
        
var_dump($username);

        
// Remove multiple spaces from the username
        
$username preg_replace("#\s{2,}#"" "$username);
        
var_dump($username); 

output of " " being: string(0) "" string(0) "" string(0) "" with an error message of: "You did not enter a username. Please enter one."
Visit this user's website Find all posts by this user
09-12-2008, 10:50 PM
Post: #14
RE: The User with no name
On mine it passes the Ajax validation, but not when you submit it.
Find all posts by this user
09-13-2008, 11:09 AM (This post was last modified: 09-13-2008 11:10 AM by destroyer.)
Post: #15
RE: The User with no name
OK, I indeed need to rewrite my post... it only passes the ajax validation.

So it's a little bug then? Toungue

[Image: destroyerjf8.jpg]

Give us your feedback about MyBB in this thread and become listed on the MyBB website.
Visit this user's website Find all posts by this user
09-13-2008, 05:48 PM
Post: #16
RE: The User with no name
(09-13-2008 11:09 AM)destroyer Wrote:  OK, I indeed need to rewrite my post... it only passes the ajax validation.

So it's a little bug then? Toungue

The original poster stated that a user did register with a blank name - however, unless otherwise stated, I think we can assume that was because of hidden characters and there really isn't much we can do about it.

But yes, we can confirm the ajax validation doesn't take into account spaces
Visit this user's website Find all posts by this user
09-19-2008, 05:20 PM (This post was last modified: 09-19-2008 05:27 PM by goughy000.)
Post: #17
RE: The User with no name
if the user hadn't been renamed it would of been easy to find out what character he used.

I'll see if i can replicate it

the only other thing i can think of is if it's a chinese/japanese etc character and you dont have an apropriate language pack installed to view the character and your browser is rendering it as a space and it's somehow messing up mybb for the "no-one" part

[Image: byte%20ad%20bar%20copy.jpg]
My Plugins
Visit this user's website Find all posts by this user
11-02-2008, 07:49 PM (This post was last modified: 11-02-2008 07:50 PM by Ryan Gordon.)
Post: #18
RE: The User with no name
Another note on the problem; The language string "No-One" only exists in portal.lang.php so there is no way that it showed up as "No-One" in the member list unless that was actually his username.
Visit this user's website Find all posts by this user
11-16-2008, 10:16 AM
Post: #19
[F] The User with no name [R]
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Visit this user's website Find all posts by this user
11-16-2008, 10:17 AM
Post: #20
RE: [F] The User with no name [R]
I've marked this bug as fixed only to represent the bug report for the Javascript Validation not taking into account spaces.
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication