Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: php: preserve quotes

frederik33e2cb9e96cd
diff --git a/scripts/config.php b/scripts/config.php
index 78a88235..06246433 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -72,8 +72,8 @@ if(isset($_GET["latitude"])){
} else {
$data_model_version = 1;
}
- $only_notify_species_names = $_GET['only_notify_species_names'];
- $only_notify_species_names_2 = $_GET['only_notify_species_names_2'];
+ $only_notify_species_names = htmlspecialchars_decode($_GET['only_notify_species_names'], ENT_QUOTES);
+ $only_notify_species_names_2 = htmlspecialchars_decode($_GET['only_notify_species_names_2'], ENT_QUOTES);
if(isset($_GET['apprise_notify_each_detection'])) {
$apprise_notify_each_detection = 1;