Escape HTML when displaying recipes on /mealplan (references #1868)

This commit is contained in:
Bernd Bestel
2022-04-21 21:32:28 +02:00
parent c4388a6f8f
commit 845e69fb96
2 changed files with 7 additions and 0 deletions

View File

@@ -139,6 +139,8 @@ $(".calendar").each(function()
return false;
}
recipe.name = recipe.name.escapeHTML();
var internalShadowRecipe = FindObjectInArrayByPropertyValue(internalRecipes, "name", mealPlanEntry.day + "#" + mealPlanEntry.id);
var resolvedRecipe = FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", internalShadowRecipe.id);