aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'