fix: properly decode species so apostrophe in the name survives the url encode

This commit is contained in:
frederik
2024-09-14 10:20:16 +02:00
parent 61347ecf04
commit 3dc8b6db38
+1 -1
View File
@@ -36,7 +36,7 @@ if(isset($_GET['sort']) && $_GET['sort'] == "occurrences") {
if(isset($_GET['species'])){
$selection = $_GET['species'];
$selection = htmlspecialchars_decode($_GET['species'], ENT_QUOTES);
$statement3 = $db->prepare("SELECT Com_Name, Sci_Name, COUNT(*), MAX(Confidence), File_Name, Date, Time from detections WHERE Com_Name = \"$selection\"");
ensure_db_ok($statement3);
$result3 = $statement3->execute();