dbtlr / php-airbrake

A PHP 5.3 library for sending errors to the Airbrake.io service.
http://airbrake.io
MIT License
121 stars 44 forks source link

Escaping special characters in the error message #15

Closed weotch closed 11 years ago

weotch commented 11 years ago

I was getting an error that looked like this with an exception contains SQL output in it:

SimpleXMLElement::addChild() [<a href='simplexmlelement.addchild'>simplexmlelement.addchild</a>]: unterminated entity reference &amp; visible = 1 &amp;&amp; tagged_contentforeign_type NOT IN ('daily_term', 'inspiration')

I figure this patch will help others who may have things in their errors that XML doesn't like.

dbtlr commented 11 years ago

Looks like a simple enough (but needed) fix. Thanks for fixing it. :)