This project is archived and is in readonly mode.

Changeset [1a1822726189f3cfff305dea62e5cfbdbc0da577] by Jeffrey Hardy

October 24th, 2008 @ 03:16 AM

Fix that HTML::Node.parse would blow up on unclosed CDATA sections.

If an unclosed CDATA section is encountered and parsing is strict, an exception will be raised. Otherwise, we consider the remainder of the line to be the section contents. This is consistent with HTML::Tokenizer#scan_tag.

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

Committed by Jeffrey Hardy

  • M actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
  • M actionpack/test/controller/html-scanner/node_test.rb
  • M actionpack/test/controller/html-scanner/sanitizer_test.rb

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>