* 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:
parent
f6f89b880a
commit
0e260ef122
@ -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>
|
Sun Oct 4 19:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* marshal.c (struct {dump,load}_arg): manage with dfree, instead
|
* marshal.c (struct {dump,load}_arg): manage with dfree, instead
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
# cookie1.expires = Time.now + 30
|
# cookie1.expires = Time.now + 30
|
||||||
# cookie1.secure = true
|
# cookie1.secure = true
|
||||||
class CGI
|
class CGI
|
||||||
|
@@accept_charset="UTF-8" unless defined?(@@accept_charset)
|
||||||
class Cookie < Array
|
class Cookie < Array
|
||||||
|
|
||||||
# Create a new CGI::Cookie object.
|
# Create a new CGI::Cookie object.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
class CGI
|
class CGI
|
||||||
|
@@accept_charset="UTF-8" unless defined?(@@accept_charset)
|
||||||
# URL-encode a string.
|
# URL-encode a string.
|
||||||
# url_encoded_string = CGI::escape("'Stop!' said Fred")
|
# url_encoded_string = CGI::escape("'Stop!' said Fred")
|
||||||
# # => "%27Stop%21%27+said+Fred"
|
# # => "%27Stop%21%27+said+Fred"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user