TagSpaces is an offline, open source, document manager with tagging support
fixing security issue with the alert and the confirm dialogs
Ilianbf6b6f50b529
diff --git a/data/chrome/chrome.api.js b/data/chrome/chrome.api.jsindex c090dd917..5ff52f12b 100644--- a/data/chrome/chrome.api.js+++ b/data/chrome/chrome.api.js@@ -343,10 +343,8 @@ IO-APIif(!isAllowedAccess) {TSCORE.showAlertDialog("Please make sure that you check the 'Allow access to file URLs'"+- " checkbox as shown in the following screenshot "+- " from the extension ('chrome://extensions/') settings of chrome/chromium"+- "<img style='width: 100%;' src='chrome/ChromeAllowAccessFileURLs.png' />",- "TagSpaces can not read files from your local disk!"+ " checkbox in the extension settings of chrome/chromium ('chrome://extensions/'). ",+ "TagSpaces can not read files from your local storage!");}});diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 4e1698d8b..b75062a7f 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -18,7 +18,7 @@ define(function(require, exports, module) {var alertModal = $('#alertDialog');alertModal.find('h4').text(title);alertModal.find('.modal-body').empty();- alertModal.find('.modal-body').append(message);+ alertModal.find('.modal-body').text(message);alertModal.find('#okButton').off('click').click(function(event) {@@ -36,7 +36,7 @@ define(function(require, exports, module) {var confirmModal = $('#confirmDialog');confirmModal.find('h4').text(title);confirmModal.find('.modal-body').empty();- confirmModal.find('.modal-body').append(message);+ confirmModal.find('.modal-body').text(message);confirmModal.find('#okButton').off('click').click(function(event) {