From c57ef4ae61ad44b640244b325cde46cb4b95eb1e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 28 May 2015 13:58:54 -0600 Subject: [PATCH] Fix no hash bug in puzzler.cgi --- www/cgi-bin/koth.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/www/cgi-bin/koth.lua b/www/cgi-bin/koth.lua index cb46c87..412d1b9 100644 --- a/www/cgi-bin/koth.lua +++ b/www/cgi-bin/koth.lua @@ -40,12 +40,11 @@ function koth.page(title, body) print(body) print("") end - print([[
- Los Alamos National Laboratory - US Department Of Energy - Sandia National Laboratories -
]]) - + print('
') + print('Los Alamos National Laboratory') + print('US Department Of Energy') + print('Sandia National Laboratories') + print('
') print("") os.exit(0) end @@ -55,7 +54,10 @@ end -- function koth.award_points(team, category, points, comment) team = team:gsub("[^0-9a-f]", "-") - + if (team == "") then + team = "-" + end + local filename = team .. "." .. category .. "." .. points local entry = team .. " " .. category .. " " .. points