Project

General

Profile

Actions

Bug #602

closed

CGI::HtmlExtension::popup_menu calls #bytesize on array parameters

Added by funny_falcon (Yura Sokolov) almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
Backport:
[ruby-core:18919]

Description

=begin
After line 623
values.collect{|value|
if value.kind_of?(String)
option({ "VALUE" => value }){ value }
else

  •        if value[value.bytesize - 1] == true
    
  •        if value[value.size - 1] == true
             option({ "VALUE" => value[0], "SELECTED" => true }){
    
  •            value[value.bytesize - 2]
    
  •            value[value.size - 2]
             }
           else
             option({ "VALUE" => value[0] }){
    
  •            value[value.bytesize - 1]
    
  •            value[value.size - 1]
             }
           end
         end
       }.join
    

=end

Actions

Also available in: Atom PDF