mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Excape HTML (where needed, for bootbox) (references #996)
This commit is contained in:
@@ -77,7 +77,7 @@ $(".status-filter-message").on("click", function()
|
||||
|
||||
$("#delete-selected-shopping-list").on("click", function()
|
||||
{
|
||||
var objectName = $("#selected-shopping-list option:selected").text();
|
||||
var objectName = SanitizeHtml($("#selected-shopping-list option:selected").text());
|
||||
var objectId = $("#selected-shopping-list").val();
|
||||
|
||||
bootbox.confirm({
|
||||
@@ -158,7 +158,7 @@ $(document).on('click', '#add-products-below-min-stock-amount', function(e)
|
||||
$(document).on('click', '#clear-shopping-list', function(e)
|
||||
{
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text()),
|
||||
message: __t('Are you sure to empty shopping list "%s"?', SanitizeHtml($("#selected-shopping-list option:selected").text())),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
Reference in New Issue
Block a user