From eed0f2ecfe0e96e073b9d87e713a531767384eba Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 27 Oct 2008 00:27:55 +0100 Subject: changed cookie path to avoid cookie flooding --- index.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.cgi') 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 = "ASCII" 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 = "#{CGI.escapeHTML('↩✔✘?–↞←→↠')}" BACK = CGI.escapeHTML("<-") -- cgit v1.2.3