Actions
Feature #255
closedCGI element generation methods should convert keys/values to Strings before escaping.
Description
=begin
@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)
=> ''¶
=end
Files
Actions
Like0
Like0Like0Like0Like0Like0