Commit d3947e2a953fe06f3cf5e53975df828f6e244852

Authored by Sergey Nartimov
2 parents 6d18a4dd 13490f81
Exists in master and in 1 other branch production

Merge pull request #388 from synthdnb/master

fix UTF-8 error message handling
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,7 +779,7 @@ printStackTrace.implementation.prototype = {
779 779
780 switch (this.options['outputFormat']) { 780 switch (this.options['outputFormat']) {
781 case 'XML': 781 case 'XML':
782 - outputData = escape(this.generateXML(this.generateDataJSON(error))); 782 + outputData = encodeURIComponent(this.generateXML(this.generateDataJSON(error)));
783 url = ('https:' == document.location.protocol ? 'https://' : 'http://') + this.options.host + '/notifier_api/v2/notices'; 783 url = ('https:' == document.location.protocol ? 'https://' : 'http://') + this.options.host + '/notifier_api/v2/notices';
784 _sendGETRequest(url, outputData); 784 _sendGETRequest(url, outputData);
785 break; 785 break;