From: Dominik Csapak Date: Thu, 8 Aug 2019 12:28:41 +0000 (+0200) Subject: fix html entities in system report file X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5101a9f82e7c9283628bfbe00ee10102051da4b8;p=pmg-gui.git fix html entities in system report file since the content of the window is encoded with 'Ext.htmlEncode' we have to decode it with 'Ext.String.htmlDecode' (Ext.htmlDecode is a deprecated alias for it) before downloading the file Signed-off-by: Dominik Csapak --- diff --git a/js/Subscription.js b/js/Subscription.js index 2cbd272..6b3e2ff 100644 --- a/js/Subscription.js +++ b/js/Subscription.js @@ -60,7 +60,7 @@ Ext.define('PMG.Subscription', { { text: gettext('Download'), handler: function() { - var fileContent = reportWindow.getComponent('system-report-view').html; + var fileContent = Ext.String.htmlDecode(reportWindow.getComponent('system-report-view').html); var fileName = getReportFileName(); // Internet Explorer