From 1069478c8ab94b1fc679155595bc81fb46340bdc Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Fri, 16 Jun 2006 02:04:33 +0000 Subject: [PATCH] Prevent users from creating accounts with a blank username --- account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.php b/account.php index 9673a8e..0343fc6 100644 --- a/account.php +++ b/account.php @@ -93,7 +93,8 @@ function cmd_do_new() retry("new", "Passwords don't match"); return; } - if(!isset($_POST['ext_realname'])) + $_POST['ext_realname']=trim($_POST['ext_realname']); + if(empty($_POST['ext_realname'])) { retry("new", "You don't have a Real name?"); return;