1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cgi/cookie.rb: add default value to @@accept_charset

if have not defined. [ruby-dev:38987]
* lib/cgi/util.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
xibbar 2009-10-04 13:25:49 +00:00
parent f6f89b880a
commit 0e260ef122
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
Sun Oct 4 22:16:29 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/cookie.rb: add default value to @@accept_charset
if have not defined. [ruby-dev:38987]
* lib/cgi/util.rb: ditto.
Sun Oct 4 19:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (struct {dump,load}_arg): manage with dfree, instead

View file

@ -32,6 +32,7 @@
# cookie1.expires = Time.now + 30
# cookie1.secure = true
class CGI
@@accept_charset="UTF-8" unless defined?(@@accept_charset)
class Cookie < Array
# Create a new CGI::Cookie object.

View file

@ -1,4 +1,5 @@
class CGI
@@accept_charset="UTF-8" unless defined?(@@accept_charset)
# URL-encode a string.
# url_encoded_string = CGI::escape("'Stop!' said Fred")
# # => "%27Stop%21%27+said+Fred"