Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6532 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] update XmlSimple to 1.0.10

Reported by: nicksieger Assigned to: David
Priority: normal Milestone: 1.x
Component: ActiveSupport Version: edge
Severity: normal Keywords: xml xmlsimple
Cc: nicksieger@gmail.com

Description

The version of XmlSimple included in active_support/vendor contains a bug in its #node_to_text method that will cause any entities in an xml document to fail to be expanded when converting from xml to a hash. So

XmlSimple.xml_in "<doc><node>&amp;</node></doc>"

# => { "node" => &amp;? }

instead of

# => { "node" => &? }

This can affect data integrity with xml posts as well as ActiveResource, so an upgrade is recommended.

Attachments

xml_simple.rb (29.3 kB) - added by nicksieger on 11/02/06 02:07:37.
XmlSimple 1.0.10

Change History

11/02/06 02:07:37 changed by nicksieger

  • attachment xml_simple.rb added.

XmlSimple 1.0.10

11/02/06 02:14:35 changed by nicksieger

11/02/06 20:10:54 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [5414]) update XmlSimple to 1.0.10. Closes #6532. [nicksieger]