Bug #602

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

Added by Yura Sokolov over 6 years ago. Updated about 4 years ago.

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

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

History

#1 Updated by Koichi Sasada over 6 years ago

  • Assignee set to Takeyuki FUJIOKA

=begin

=end

#2 Updated by Yura Sokolov over 6 years ago

=begin
File lib/cgi/html.rb
=end

#3 Updated by Yuki Sonoda over 6 years ago

  • Due date set to 10/25/2008
  • Target version set to 1.9.1 Release Candidate

=begin

=end

#4 Updated by Takeyuki FUJIOKA over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r19614.
=end

Also available in: Atom PDF