diff options
Diffstat (limited to 'lib/cgi/html.rb')
-rw-r--r-- | lib/cgi/html.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 74aa730be7..62f1fc1898 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -27,11 +27,11 @@ class CGI attributes={attributes=>nil} if attributes.kind_of?(String) "<#{element.upcase}" + attributes.collect{|name, value| next unless value - " " + CGI::escapeHTML(name) + + " " + CGI::escapeHTML(name.to_s) + if true == value "" else - '="' + CGI::escapeHTML(value) + '"' + '="' + CGI::escapeHTML(value.to_s) + '"' end }.join + ">" END |