aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-10-27 00:27:55 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-10-27 00:27:55 +0100
commiteed0f2ecfe0e96e073b9d87e713a531767384eba (patch)
treedc9a9f8efd02e00dec793259280734e9c104e76a /index.cgi
parenta89dacacd5e6c07d90f35bef417e1a009af4235c (diff)
changed cookie path to avoid cookie flooding
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index c945f38..3744b8f 100755
--- a/index.cgi
+++ b/index.cgi
@@ -300,7 +300,7 @@ CONTENTTYPE = "text/html; charset=utf-8"
puts "Content-type: #{CONTENTTYPE}"
if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii")
- puts "Set-Cookie: utf=true; path=; expires=#{(Time.now+1*60*60*24*365).getgm.strftime("%a, %d %b %Y %H:%M:%S %Z")}"
+ puts "Set-Cookie: utf=true; path=/; expires=#{(Time.now+1*60*60*24*365).getgm.strftime("%a, %d %b %Y %H:%M:%S %Z")}"
UTFASCII = "<a href='?ascii' style='text-decoration:none'>ASCII</a>"
BACK = CGI.escapeHTML("↩")
@@ -314,7 +314,7 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii")
MONTHFORWARD = CGI.escapeHTML("→")
YEARFORWARD = CGI.escapeHTML("↠")
else
- puts "Set-Cookie: utf=true; path=; expires=#{(Time.now-1*60*60*24*365).getgm.strftime("%a, %d %b %Y %H:%M:%S %Z")}"
+ puts "Set-Cookie: utf=true; path=/; expires=#{(Time.now-1*60*60*24*365).getgm.strftime("%a, %d %b %Y %H:%M:%S %Z")}"
UTFASCII = "<a href='?utf' style='text-decoration:none'>#{CGI.escapeHTML('↩✔✘?–↞←→↠')}</a>"
BACK = CGI.escapeHTML("<-")