From e2faef34017805b76ae1cc84d6a969a45c0354b6 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 7 Sep 2022 00:39:38 +0200 Subject: [PATCH 1/3] Simple cosmetic fix --- src/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View.php b/src/View.php index 71652d7..b9502a9 100644 --- a/src/View.php +++ b/src/View.php @@ -318,7 +318,7 @@ class View { //Load function from loaded view with his parameters //array_unshift($arr_template_values, $this); - + call_user_func_array($func_view, $arr_template_values); $out_template=ob_get_contents(); From 58f8594606849c63e0ee6b722cb03993faa5a09d Mon Sep 17 00:00:00 2001 From: absurdo Date: Thu, 11 May 2023 19:15:42 +0200 Subject: [PATCH 2/3] Fixes in escape function --- src/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View.php b/src/View.php index b9502a9..e7a47a3 100644 --- a/src/View.php +++ b/src/View.php @@ -318,7 +318,7 @@ class View { //Load function from loaded view with his parameters //array_unshift($arr_template_values, $this); - + call_user_func_array($func_view, $arr_template_values); $out_template=ob_get_contents(); @@ -776,7 +776,7 @@ class View { static public function e($text) { - $text=htmlspecialchars($text); + $text=htmlspecialchars($text, ENT_QUOTES, 'UTF-8')); return $text; From 316f4afb5f0fc011735d48815d193300acad03ce Mon Sep 17 00:00:00 2001 From: absurdo Date: Thu, 11 May 2023 19:21:57 +0200 Subject: [PATCH 3/3] Fixes bug in e function for escaping --- src/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View.php b/src/View.php index e7a47a3..e3c43e4 100644 --- a/src/View.php +++ b/src/View.php @@ -776,7 +776,7 @@ class View { static public function e($text) { - $text=htmlspecialchars($text, ENT_QUOTES, 'UTF-8')); + $text=htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); return $text;