Skip to content

A live bird collage card for your Home Assistant dashboard.

handles apostrophes now -- thanks @jerrajerra

mcguirepr89045afcdd11b1
diff --git a/scripts/exclude_list.php b/scripts/exclude_list.php
index dbbbaa05..876606ff 100644
--- a/scripts/exclude_list.php
+++ b/scripts/exclude_list.php
@@ -16,7 +16,7 @@
$eachline = file($filename, FILE_IGNORE_NEW_LINES);
foreach($eachline as $lines){echo
- "<option value='".$lines."'>$lines</option>";}
+ "<option value=\"".$lines."\">$lines</option>";}
?>
</select>
<input type="hidden" name="add" value="add">
@@ -43,7 +43,7 @@
$eachline = file($filename, FILE_IGNORE_NEW_LINES);
foreach($eachline as $lines){
echo
- "<option value='".$lines."'>$lines</option>";
+ "<option value=\"".$lines."\">$lines</option>";
}?>
</select>
<input type="hidden" name="del" value="del">
diff --git a/scripts/include_list.php b/scripts/include_list.php
index 6c908497..ad663be5 100644
--- a/scripts/include_list.php
+++ b/scripts/include_list.php
@@ -23,7 +23,7 @@ $eachlines = file($filename, FILE_IGNORE_NEW_LINES);
<option selected value="base">Please Select</option>
<?php
foreach($eachlines as $lines){echo
- "<option value='".$lines."'>$lines</option>";}
+ "<option value=\"".$lines."\">$lines</option>";}
?>
</select>
<input type="hidden" name="add" value="add">
@@ -50,7 +50,7 @@ $eachlines = file($filename, FILE_IGNORE_NEW_LINES);
$filename = './scripts/include_species_list.txt';
$eachlines = file($filename, FILE_IGNORE_NEW_LINES);
foreach($eachlines as $lines){echo
- "<option value='".$lines."'>$lines</option>";}
+ "<option value=\"".$lines."\">$lines</option>";}
?>
</select>
<input type="hidden" name="del" value="del">