This project is archived and is in readonly mode.

#1836 ✓committed
Wiktor Gworek

AtomFeedBuilder renders not valid xml when using options[:xml]

Reported by Wiktor Gworek | February 1st, 2009 @ 11:47 AM | in 2.x

When using atom_feed in standalone app:

atom_feed({ :id => 1, :root_url => 'root_url', :language => 'pl_PL', :url => 'some_url', :xml =>}) do |feed| ...


<?xml version="1.0" encoding="UTF-8"?><feed<to_s/> xml="<?xml version="1.0" encoding="UTF-8"?><inspect/><feed<to_s/>" xml:lang="pl_PL" xmlns="">

which is not valid. This is due line 144 in atom_feed_helper.rb: feed_opts.merge!(options).reject!{|k,v| !k.to_s.match(/^xml/)} It doesn't rejectes (but should) options[:xml].

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by