diff options
Diffstat (limited to 'cgi-bin/provisioning.cgi')
-rwxr-xr-x | cgi-bin/provisioning.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi-bin/provisioning.cgi b/cgi-bin/provisioning.cgi index 20f08e1..8926652 100755 --- a/cgi-bin/provisioning.cgi +++ b/cgi-bin/provisioning.cgi @@ -48,7 +48,7 @@ function http_code (code) -- redirect to same file with empty mac io.stdout:write("Location: " .. string.gsub(path_info, "%x%x%x%x%x%x%x%x%x%x%x%x", "000000000000") .. "\n") io.stdout:write("Content-Type: \n\n") - io.stdout:write("<a href=\"".. string.gsub(path_info, "%x%x%x%x%x%x%x%x%x%x%x%x", "000000000000") .."\">New Link</a>") + io.stdout:write("<a href=\"".. string.gsub(path_info, "%x%x%x%x%x%x%x%x%x%x%x%x", "000000000000") .."\">New Link</a>") elseif code == 404 then io.stdout:write("Status: 404 Not Found\n") io.stdout:write("Content-Type: \n\n") @@ -97,7 +97,7 @@ if ( request_method == "GET" ) then end -- don't even bother for files that don't contain a MAC - if mac == nil then + if mac == nil then http_code(404) log:close() os.exit() @@ -191,5 +191,5 @@ elseif ( request_method == "PUT" ) then http_code(400) end end -log:close() +log:close() %> |