rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
* BUG: cookies with expiration date
@ 2009-10-29 20:15 Ivan Ukhov
  0 siblings, 0 replies; only message in thread
From: Ivan Ukhov @ 2009-10-29 20:15 UTC (permalink / raw)
  To: Rack Development


Hi!

Please have a look at this line:

http://github.com/rack/rack/blob/663abfce9b71ab273c8adc0e76c233671bc43e1d/lib/rack/response.rb#L64

value[:expires].clone.gmtime.strftime("%a, %d-%b-%Y %H:%M:%S GMT")

My default system locale is ru_RU.UTF8, therefore this line produces
string with Russian letters. Browsers cant set expiration date in
Russian. FF sets session cookies, Safari doesnt set cookies at all.
Suppose this is a bug. Instead of strftime, rfc2822 should be used.

Thanks.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-29 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29 20:15 BUG: cookies with expiration date Ivan Ukhov

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/rack.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).