diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-10-27 00:27:55 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-10-27 00:27:55 +0100 |
commit | eed0f2ecfe0e96e073b9d87e713a531767384eba (patch) | |
tree | dc9a9f8efd02e00dec793259280734e9c104e76a /index.cgi | |
parent | a89dacacd5e6c07d90f35bef417e1a009af4235c (diff) |
changed cookie path to avoid cookie flooding
Diffstat (limited to 'index.cgi')
-rwxr-xr-x | index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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("<-") |