aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-02-08 02:26:49 -0600
committerthe lemons <citrons@mondecitronne.com>2022-02-08 02:26:49 -0600
commitd28f0f91d1b5f636b080ef52b81f65224d7cecd9 (patch)
tree3200cf8df392eb180dce8c5ed0c0420cd2e40886
parentd2265ced9b22a8deea1d3242d527ec0d309f27e9 (diff)
fix error wherein a function that no longer exists is called
-rwxr-xr-xzzcxz.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/zzcxz.cgi b/zzcxz.cgi
index 90e8f0e..43bf3a7 100755
--- a/zzcxz.cgi
+++ b/zzcxz.cgi
@@ -388,7 +388,7 @@ map["^/g/(%w%w%w%w%w)$"] = function(p)
-- ]]):format(p)
end
- local hist_cookie = ('history=%s; path=/; secure; max-age=99999999999')
+ local hist_cookie = ('history=%s; path=/; max-age=99999999999')
:format(table.concat(history, ',')..',')
return base {
@@ -566,8 +566,7 @@ map["^/robots.txt$"] = function()
end
map["^/$"] = function()
- local hist = get_history()
- if #hist > 0 then
+ if #history > 0 then
return redirect('/g/'..hist[#hist])
else
return redirect '/g/zzcxz'