From c644ebb16b06c3f02b16fa7461695c1bd1100089 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 5 Feb 2013 23:07:35 -0700 Subject: [PATCH] also check for empty team name --- packages/mcp/www/register.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mcp/www/register.cgi b/packages/mcp/www/register.cgi index 2567276..c94713d 100755 --- a/packages/mcp/www/register.cgi +++ b/packages/mcp/www/register.cgi @@ -22,8 +22,8 @@ Content-type: text/html

Team Registration

EOF -if [ -z "$hash" ]; then - echo "

Empty hash, cannot complete request

" +if [ -z "$hash" ] || [ -z "$team" ]; then + echo "

Empty field, cannot complete request

" elif ! grep -q $hash $CTF_BASE/state/teams/assigned.txt; then echo "

That hash has not been assigned.

" elif [ -f $CTF_BASE/state/teams/names/$hash ]; then