From 8e3c456327ea44dbe82c2ee41b2639146870eb60 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:57:52 +0200 Subject: [PATCH] Fix parameter name mismatch in `View::escape` method The mismatch arises after migration from ZF1 to ZF-future. --- library/Icinga/Web/View.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/View.php b/library/Icinga/Web/View.php index ec169401e..f00584f9f 100644 --- a/library/Icinga/Web/View.php +++ b/library/Icinga/Web/View.php @@ -99,12 +99,12 @@ class View extends Zend_View_Abstract /** * Escape the given value top be safely used in view scripts * - * @param string $value The output to be escaped + * @param string $var The output to be escaped * @return string */ - public function escape($value) + public function escape($var) { - return htmlspecialchars($value ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true); + return htmlspecialchars($var ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true); } /**