mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Escape HTML when displaying recipes on /mealplan (references #1868)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user