Project

General

Profile

Actions

Bug #602

closed

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

Added by funny_falcon (Yura Sokolov) about 16 years ago. Updated over 13 years ago.

Status:
Closed
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

Like0
Like0Like0Like0Like0