From: Anonymous Date: 2008-07-10T22:06:03+09:00 Subject: [ruby-core:17724] [Ruby 1.8 - Bug #255] (Open) CGI element generation methods should convert keys/values to Strings before escaping. Issue #255 has been reported by Anonymous. ---------------------------------------- Bug #255: CGI element generation methods should convert keys/values to Strings before escaping. http://redmine.ruby-lang.org/issues/show/255 Author: Anonymous Status: Open Priority: Normal Assigned to: Category: Target version: @cgi.file_field("test", 40) # => '' @cgi.file_field("NAME" => "test", "SIZE" => 40) # => private method `gsub' called for 40:Fixnum The attached patch fixes this issue for all element generation methods. Additionally, it allows passing Symbols instead of Strings for attribute names. @cgi.file_field("NAME" => "test", "SIZE" => 40) # => '' @cgi.file_field(:NAME => "test", :SIZE => 40) # => '' ---------------------------------------- http://redmine.ruby-lang.org