From 5f39d8e59406dd71aaa2dc70b210957d92a43f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 26 Feb 2023 00:52:00 +0100 Subject: [PATCH] Properly escape user provided data in trans with data to prevent possible XSS attack vectors. --- src/DataTables/Helpers/PartDataTableHelper.php | 2 +- templates/admin/_delete_form.html.twig | 2 +- templates/parts/info/_tools.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataTables/Helpers/PartDataTableHelper.php b/src/DataTables/Helpers/PartDataTableHelper.php index c9000283..b13ee813 100644 --- a/src/DataTables/Helpers/PartDataTableHelper.php +++ b/src/DataTables/Helpers/PartDataTableHelper.php @@ -67,7 +67,7 @@ class PartDataTableHelper '%s%s', $this->entityURLGenerator->infoURL($context), $icon, - htmlentities($context->getName()) + htmlspecialchars($context->getName()) ); } diff --git a/templates/admin/_delete_form.html.twig b/templates/admin/_delete_form.html.twig index e6250d57..0423bdca 100644 --- a/templates/admin/_delete_form.html.twig +++ b/templates/admin/_delete_form.html.twig @@ -1,5 +1,5 @@
diff --git a/templates/parts/info/_tools.html.twig b/templates/parts/info/_tools.html.twig index 6fee4aee..3be32f3c 100644 --- a/templates/parts/info/_tools.html.twig +++ b/templates/parts/info/_tools.html.twig @@ -29,7 +29,7 @@