From c00005e59a7489519ce7ae2ada9a371bb3655e51 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 22 Dec 2005 05:40:26 +0000 Subject: [PATCH] r653: Don't allow blank display names --- register.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/register.php b/register.php index 3ddff4d..f91efe9 100755 --- a/register.php +++ b/register.php @@ -77,6 +77,11 @@ if ($_POST['do'] == 'insert') $message->phrase[] = $lang->string('The password you specified was blank.'); } + if (!$bugsys->in['displayname']) + { + $message->phrase[] = $lang->string('The display name you specified was blank.'); + } + if (!$funct->is_valid_email($bugsys->in['email'])) { $message->phrase[] = $lang->string('The specified email is invalid.'); @@ -89,7 +94,7 @@ if ($_POST['do'] == 'insert') if (is_array($db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE displayname = '" . $bugsys->in['displayname'] . "'"))) { - $message->phrase[] = $lang->string('That display name is already in use by another user'); + $message->phrase[] = $lang->string('That display name is already in use by another user.'); } if ($message->phrase) -- 2.43.5