Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Hash.from_xml chokes on empty CDATA

#6757

Rails 3.0.6 --

>> require 'rubygems'
=> false
>> gem 'activesupport', '3.0.6'
=> true
>> require 'active_support/all'
=> true
>> Hash.from_xml("<data><![CDATA[]]></data>")
=> {"data"=>""}

Rails 3.0.7 --

>> require 'rubygems'
=> false
>> gem 'activesupport', '3.0.7'
=> true
>> require 'active_support/all'
=> true
>> Hash.from_xml("<data><![CDATA[]]></data>")
=> {"data"=>{"__content__"=>""}}

Reported by Bradley Harris · April 29th, 2011 @ 07:25 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none