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