This project is closed and read-only.
Actions
Backport #2428
closedURI::Generic#eql? broken when passed nil
Backport #2428:
URI::Generic#eql? broken when passed nil
Status:
Closed
Assignee:
Description
=begin
URI::Generic#eql? does not check for nil:
Test Case:
require 'uri'
uri = URI.parse 'http://gemcutter.org'
uri.eql?(nil) # => blows up
Fix:
def eql?(oth)
return true if self.equal?(oth)
self.class.equal?(oth.class) &&
self.component_ary.eql?(oth.component_ary)
end
=end
Actions