Skip to content

Commit

Permalink
* lib/cgi/cookie.rb: add default value to @@accept_charset
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
xibbar committed Oct 4, 2009
1 parent f6f89b8 commit 0e260ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Sun Oct 4 22:16:29 2009 Takeyuki FUJIOKA <[email protected]>

* 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 <[email protected]>

* marshal.c (struct {dump,load}_arg): manage with dfree, instead
Expand Down
1 change: 1 addition & 0 deletions lib/cgi/cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions lib/cgi/util.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 0e260ef

Please sign in to comment.