Project

General

Profile

Actions

Feature #255

closed

CGI element generation methods should convert keys/values to Strings before escaping.

Added by Anonymous almost 16 years ago. Updated almost 13 years ago.


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

cgi_elements.patch (604 Bytes) cgi_elements.patch Anonymous, 07/10/2008 10:10 PM
new_cgi_elements.patch (395 Bytes) new_cgi_elements.patch New patch NoKarma (Arthur Schreiber), 07/18/2008 06:33 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0