A live bird collage card for your Home Assistant dashboard.
FILTER_SANITIZE_STRING is deprecated in PHP 8.1+
Alexandre6ef96d1c9eed
diff --git a/scripts/species_tools.php b/scripts/species_tools.phpindex 8dc11081..b0926269 100644--- a/scripts/species_tools.php+++ b/scripts/species_tools.php@@ -1,7 +1,7 @@<?php/* Basic input sanitation */-$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING) ?: [];-$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING) ?: [];+$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_FULL_SPECIAL_CHARS) ?: [];+$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_FULL_SPECIAL_CHARS) ?: [];require_once __DIR__ . '/common.php';ensure_authenticated();