From 2d48273acae13a38a25dd3f7dc3a49ee76a323ce Mon Sep 17 00:00:00 2001 From: olatechpro Date: Wed, 24 Jul 2024 20:40:03 +0100 Subject: [PATCH] Remove old sanitize --- modules/calendar/calendar.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index c448e016..fee03274 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1197,10 +1197,7 @@ public function get_filters() // Sanitize and validate any newly added filters foreach ($old_filters as $key => $old_value) { - if (isset($_GET[$key]) && false !== ($new_value = $this->sanitize_filter( - $key, - sanitize_text_field($_GET[$key]) - ))) { + if (isset($_GET[$key]) && false !== ($new_value = sanitize_text_field($_GET[$key]))) { $filters[$key] = $new_value; } else { $filters[$key] = $old_value;