On 8/3/07, Rick Olson <[EMAIL PROTECTED]> wrote:
>
> Lame one-line fix until someone smarter than me comes up with one:
>
> REXML::Document.class_eval { def doctype() nil end }
>
> This hides any doctype so XmlSimple will ignore it.  I think it's good
> enough until this gets properly patched.
>
> script/plugin install
> http://svn.techno-weenie.net/projects/plugins/xml_simple_doctype_fix

Also, if you don't need to support XML uploads in your application,
you can disable Rails use of XMLSimple by including the following in
your environment:

  ActionController::Base.param_parsers.delete(Mime::XML)

This is untested but should work if I'm reading the source correctly.
If a core member could confirm, that'd be great.

Jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to