[pve-devel] applied: [PATCH manager] gui: fix html entities in system report file

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Aug 9 09:22:54 CEST 2019


On August 8, 2019 2:28 pm, Dominik Csapak wrote:
> 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 at proxmox.com>
> ---
>  www/manager6/node/Subscription.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/www/manager6/node/Subscription.js b/www/manager6/node/Subscription.js
> index 478d2e0b..e4a35874 100644
> --- a/www/manager6/node/Subscription.js
> +++ b/www/manager6/node/Subscription.js
> @@ -60,7 +60,7 @@ Ext.define('PVE.node.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
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 



More information about the pve-devel mailing list