Commit 6c30142fb0018dc85bedded605b3eea4f49d0c42

Authored by Dave Miller
1 parent bf7175e0
Exists in master and in 1 other branch production

Treat message as CDATA to avoid invalid XML

public/javascripts/notifier.js
... ... @@ -366,7 +366,7 @@ printStackTrace.implementation.prototype = {
366 366 '</notifier>' +
367 367 '<error>' +
368 368 '<class>{exception_class}</class>' +
369   - '<message>{exception_message}</message>' +
  369 + '<message><![CDATA[{exception_message}]]></message>' +
370 370 '<backtrace>{backtrace_lines}</backtrace>' +
371 371 '</error>' +
372 372 '<request>' +
... ...
spec/fixtures/hoptoad_test_notice.xml
... ... @@ -9,7 +9,7 @@
9 9 <framework>Rails: 3.2.11</framework>
10 10 <error>
11 11 <class>HoptoadTestingException</class>
12   - <message>HoptoadTestingException: Testing hoptoad via "rake hoptoad:test". If you can see this, it works.</message>
  12 + <message><![CDATA[HoptoadTestingException: Testing hoptoad via "rake hoptoad:test". If you can see this, it works & works well.]]></message>
13 13 <backtrace>
14 14 <line number="425" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method="_run__2115867319__process_action__262109504__callbacks"/>
15 15 <line number="404" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method="send"/>
... ...