From d28f0f91d1b5f636b080ef52b81f65224d7cecd9 Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 8 Feb 2022 02:26:49 -0600 Subject: fix error wherein a function that no longer exists is called --- zzcxz.cgi | 5 ++--- 1 file 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' -- cgit v1.2.3