Commit abc2fae8dec2e4f770cc9ea3fb5aac69d9e736f4

Authored by Cyril Mougel
2 parents bf7175e0 6c30142f
Exists in master and in 1 other branch production

Merge pull request #514 from mildavw/master

fix for notifier.js sending invalid XML
public/javascripts/notifier.js
@@ -366,7 +366,7 @@ printStackTrace.implementation.prototype = { @@ -366,7 +366,7 @@ printStackTrace.implementation.prototype = {
366 '</notifier>' + 366 '</notifier>' +
367 '<error>' + 367 '<error>' +
368 '<class>{exception_class}</class>' + 368 '<class>{exception_class}</class>' +
369 - '<message>{exception_message}</message>' + 369 + '<message><![CDATA[{exception_message}]]></message>' +
370 '<backtrace>{backtrace_lines}</backtrace>' + 370 '<backtrace>{backtrace_lines}</backtrace>' +
371 '</error>' + 371 '</error>' +
372 '<request>' + 372 '<request>' +
spec/fixtures/hoptoad_test_notice.xml
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <framework>Rails: 3.2.11</framework> 9 <framework>Rails: 3.2.11</framework>
10 <error> 10 <error>
11 <class>HoptoadTestingException</class> 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 <backtrace> 13 <backtrace>
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"/> 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 <line number="404" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method="send"/> 15 <line number="404" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method="send"/>