Commit 13490f81532c05d342ce2b2a24a9729a1982b192

Authored by Minkyu Kim
1 parent 6d18a4dd
Exists in master and in 1 other branch production

modified notifier.js to handle utf-8 errors

using escape causes api to crash when sending utf-8 error messages.
changed to encodeURIComponent
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
public/javascripts/notifier.js
... ... @@ -779,7 +779,7 @@ printStackTrace.implementation.prototype = {
779 779  
780 780 switch (this.options['outputFormat']) {
781 781 case 'XML':
782   - outputData = escape(this.generateXML(this.generateDataJSON(error)));
  782 + outputData = encodeURIComponent(this.generateXML(this.generateDataJSON(error)));
783 783 url = ('https:' == document.location.protocol ? 'https://' : 'http://') + this.options.host + '/notifier_api/v2/notices';
784 784 _sendGETRequest(url, outputData);
785 785 break;
... ...