diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-29 06:53:48 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-29 06:53:48 +0000 |
| commit | 1840408f2988849f30456663745b03015f711a5e (patch) | |
| tree | fa225f91650c8733b2613fe33eb3a9175c87a315 /lib | |
| parent | bf57bc6c8dbbfcc3f38c4642407e22bf3feeddad (diff) | |
| download | ruby-1840408f2988849f30456663745b03015f711a5e.tar.gz ruby-1840408f2988849f30456663745b03015f711a5e.tar.xz ruby-1840408f2988849f30456663745b03015f711a5e.zip | |
* eval.c (Init_Proc): taint preallocated exception object
sysstack_error. [ruby-talk:84534]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cgi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 82318707d..a6003d99a 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -891,7 +891,7 @@ class CGI # # "name2" => ["value1", "value2", ...], ... } # def CGI::parse(query) - params = Hash.new{|hash,key|hash[key]=[]} + params = Hash.new([].freeze) query.split(/[&;]/n).each do |pairs| key, value = pairs.split('=',2).collect{|v| CGI::unescape(v) } |
