Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] The User with no name [R] [C-Michael83]
#13
(2008-09-12, 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

// 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."


Messages In This Thread
RE: The User with no name - by Chasingu - 2008-09-12, 02:18 AM
RE: The User with no name - by Ultron - 2008-09-12, 02:23 AM
RE: The User with no name - by Chasingu - 2008-09-12, 02:25 AM
RE: The User with no name - by Ultron - 2008-09-12, 02:31 AM
RE: The User with no name - by Chasingu - 2008-09-12, 02:33 AM
RE: The User with no name - by Ultron - 2008-09-12, 02:36 AM
RE: The User with no name - by Chasingu - 2008-09-12, 02:38 AM
RE: The User with no name - by XLXHost-Fakher - 2008-09-12, 04:07 AM
RE: The User with no name - by destroyer - 2008-09-12, 05:54 AM
RE: The User with no name - by Ryan Gordon - 2008-09-12, 04:54 PM
RE: The User with no name - by destroyer - 2008-09-12, 08:14 PM
RE: The User with no name - by Ryan Gordon - 2008-09-12, 09:39 PM
RE: The User with no name - by blueparukia - 2008-09-12, 10:50 PM
RE: The User with no name - by destroyer - 2008-09-13, 11:09 AM
RE: The User with no name - by Ryan Gordon - 2008-09-13, 05:48 PM
RE: The User with no name - by goughy000 - 2008-09-19, 05:20 PM
RE: The User with no name - by Ryan Gordon - 2008-11-02, 07:49 PM
[F] The User with no name [R] - by Ryan Gordon - 2008-11-16, 10:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)