From 1a51b3797d4c3a846e47b105a5edcb8283726651 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 14 Jun 2016 13:15:10 +0200 Subject: submit name, some fixes --- server.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server.rb') diff --git a/server.rb b/server.rb index b93464b..d25e216 100755 --- a/server.rb +++ b/server.rb @@ -179,6 +179,10 @@ def process_next reply return end $lock = true # lock + if !data['name'] || data['name'] == "" + $status = "Error: Name not given." + return + end if data['key'] != SESSION_KEY $status = "Error: Key mismatch (#{data['key']}, #{SESSION_KEY})" return -- cgit v1.2.3