From b6514edad6fecf36c858f8e71cdf34e961c8e2e0 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Tue, 22 Oct 2024 17:24:06 -0400 Subject: [PATCH] chore: appease plugin check by adding escaping everywhere --- src/Addon/View.php | 2 +- src/Addon/resources/views/admin/notices/give-inactive.php | 2 +- .../resources/views/admin/notices/give-version-error.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Addon/View.php b/src/Addon/View.php index 1e3709d..b01e3ba 100644 --- a/src/Addon/View.php +++ b/src/Addon/View.php @@ -52,7 +52,7 @@ public static function load(string $view, array $templateParams = [], bool $echo return $content; } - echo $content; + echo esc_html($content); } /** diff --git a/src/Addon/resources/views/admin/notices/give-inactive.php b/src/Addon/resources/views/admin/notices/give-inactive.php index 3c457d7..6d1a399 100644 --- a/src/Addon/resources/views/admin/notices/give-inactive.php +++ b/src/Addon/resources/views/admin/notices/give-inactive.php @@ -2,4 +2,4 @@ Give - + diff --git a/src/Addon/resources/views/admin/notices/give-version-error.php b/src/Addon/resources/views/admin/notices/give-version-error.php index 81a514d..3bcbb75 100644 --- a/src/Addon/resources/views/admin/notices/give-version-error.php +++ b/src/Addon/resources/views/admin/notices/give-version-error.php @@ -2,7 +2,7 @@ Give - + - + + .