summaryrefslogtreecommitdiff
path: root/lib/cgi/util.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-04 13:25:49 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-04 13:25:49 +0000
commit0e260ef1223038c55f819b49e7d7dd8a7be4c9a6 (patch)
tree6563bf29ad05c9e75fc3817e32698340316d11f8 /lib/cgi/util.rb
parentf6f89b880a80c1f47e6fcb6caf46d6ed35da3089 (diff)
* 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
Diffstat (limited to 'lib/cgi/util.rb')
-rw-r--r--lib/cgi/util.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb
index 218bdbdd9a0..fbba00b963d 100644
--- a/lib/cgi/util.rb
+++ b/lib/cgi/util.rb
@@ -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"