errbit/errbit — pull request #514 by mildavw (2013-07-02 20:15:05+00:00)
Title: fix for notifier.js sending invalid XML

I'm getting a Self.Errbit error "Nokogiri::XML::SyntaxError: EntityRef: expecting ';'" when one of my apps reports an error. The following is the XML which is invalid at line 11. This fix just wraps the message with CDATA so Nokogiri doesn't try to parse it. Also wrapped the backtrace just in case.

1
2
3 xxxx
4
5 airbrake_js
6 0.2.0
7 http://airbrake.io
8
9
10 Error
11 Uncaught Syntax error, unrecognized expression: [href=#bayarea?utm_source=2nd+BayREN+MF+Workshop+Invite+July&utm_campaign=July+workshop+announcement&utm_medium=email]
12
13
14
15
16
17 https://multifamily.energyupgradeca.org/local
18 contents
19 show
20
21 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
22
23
24
25 https://multifamily.energyupgradeca.org
26 production
27
28