summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-06-14 13:15:10 +0200
committerPatrick Simianer <p@simianer.de>2016-06-14 13:15:10 +0200
commit1a51b3797d4c3a846e47b105a5edcb8283726651 (patch)
treeb30146cb3165a49d35b05a8e11c133b98ff7a597 /server.rb
parent8aff80ee4f5a3cb3627e88b95a32921e7e8d7f84 (diff)
submit name, some fixes
Diffstat (limited to 'server.rb')
-rwxr-xr-xserver.rb4
1 files changed, 4 insertions, 0 deletions
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