[AppDB] Stop allowing user to create an account with a blank user name.

Tony Lambregts tony.lambregts at gmail.com
Thu Jun 15 19:45:15 CDT 2006


isset($_POST['ext_realname']) always evaluates to true so use empty instead.

The following things are considered to be empty:

"" (an empty string)
0 (0 as an integer)
"0" (0 as a string)
NULL
FALSE

What this mean to us is that a user cannot be called "0" but can be "NULL" or 
"Null" or "FALSE" of "false" I think we can live with that.

Change log:  Stop allowing user to create an account with a blank user name.

Files changed:  account.php



-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixBlankName.diff
Type: text/x-patch
Size: 578 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060615/04bf8f34/fixBlankName.diff


More information about the wine-patches mailing list