From 63fd6909184329b32a983cce745ea042959b2249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kilian=20Ga=C3=9F=20ySpeech?= Date: Tue, 22 Mar 2022 15:50:55 +0100 Subject: [PATCH] Added missing sanitize --- assets/inc/yspeechetftec-core-functions.php | 2 +- assets/inc/yspeechetftec-import-functions.php | 1 - evangelische-termine-for-the-events-calendar.php | 2 +- readme.txt | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/inc/yspeechetftec-core-functions.php b/assets/inc/yspeechetftec-core-functions.php index cd713b2..03b241c 100644 --- a/assets/inc/yspeechetftec-core-functions.php +++ b/assets/inc/yspeechetftec-core-functions.php @@ -104,7 +104,7 @@ public function yspeechetftec_create_admin_page() //Get the active tab from the $_GET param $default_tab = null; - $tab = isset($_GET['tab']) ? (string) $_GET['tab'] : $default_tab; + $tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : $default_tab; ?> diff --git a/assets/inc/yspeechetftec-import-functions.php b/assets/inc/yspeechetftec-import-functions.php index cfe7e4f..1cd032b 100644 --- a/assets/inc/yspeechetftec-import-functions.php +++ b/assets/inc/yspeechetftec-import-functions.php @@ -9,7 +9,6 @@ function yspeechetftec_import_events() { $yspeechetftec_options = get_option('yspeechetftec_option_name'); - $uri_params = ''; if (isset($yspeechetftec_options['yspeechetftec_organizer_ids']) && strlen(trim($yspeechetftec_options['yspeechetftec_organizer_ids'])) > 0) { diff --git a/evangelische-termine-for-the-events-calendar.php b/evangelische-termine-for-the-events-calendar.php index 81f7fca..0d8f452 100644 --- a/evangelische-termine-for-the-events-calendar.php +++ b/evangelische-termine-for-the-events-calendar.php @@ -2,7 +2,7 @@ /* Plugin Name: Evangelische Termine for The Events Calendar Description: Plugin zum import von Ev Termine. Das The Events Calendar Plugin sollte installiert und aktiviert sein um dieses Plugin zu verwenden. -Version: 0.0.2 +Version: 0.0.3 Requires at least: 5.6 Requires PHP: 7.2 License: GPLv3 diff --git a/readme.txt b/readme.txt index a2ec06c..da0dba8 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/donate/?hosted_button_id=3PW7J5C6R4QC6 Requires at least: 5.6 Tested up to: 5.9.2 Requires PHP: 7.2 -Stable tag: 0.0.2 +Stable tag: 0.0.3 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html