]> git.proxmox.com Git - pmg-gui.git/commitdiff
fix html entities in system report file
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 8 Aug 2019 12:28:41 +0000 (14:28 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Aug 2019 07:22:17 +0000 (09:22 +0200)
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 <d.csapak@proxmox.com>
js/Subscription.js

index 2cbd272fc6c3e712511561b02ebda01f66f58c2e..6b3e2fffe53f41d5ac59a493d9460eb2b4b08771 100644 (file)
@@ -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