diff options
author | the lemons <citrons@mondecitronne.com> | 2022-02-08 02:26:49 -0600 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2022-02-08 02:26:49 -0600 |
commit | d28f0f91d1b5f636b080ef52b81f65224d7cecd9 (patch) | |
tree | 3200cf8df392eb180dce8c5ed0c0420cd2e40886 | |
parent | d2265ced9b22a8deea1d3242d527ec0d309f27e9 (diff) |
fix error wherein a function that no longer exists is called
-rwxr-xr-x | zzcxz.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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' |