From a5f66bda63a592ca00b59c10108dc8e939d3b3c0 Mon Sep 17 00:00:00 2001 From: Tony Ribeiro Date: Thu, 24 Aug 2023 00:17:07 +0200 Subject: [PATCH] Added sanitization of request input for assets_download function. Changed assets download UI for button with little animation while downloading. --- public/scripts/extensions/assets/index.js | 30 ++++++----- public/scripts/extensions/assets/style.css | 60 ++++++++++++++++++++++ server.js | 52 +++++++++++++++---- 3 files changed, 120 insertions(+), 22 deletions(-) diff --git a/public/scripts/extensions/assets/index.js b/public/scripts/extensions/assets/index.js index 454e54124..364f1f6ca 100644 --- a/public/scripts/extensions/assets/index.js +++ b/public/scripts/extensions/assets/index.js @@ -56,7 +56,9 @@ function downloadAssetsList(url) { for (const i in availableAssets[assetType]) { const asset = availableAssets[assetType][i]; const elemId = `assets_install_${assetType}_${i}`; - let element = $('', { type: 'checkbox', id: elemId}) + let element = $('