From 5c62ad6ebbd9c9a6bc06738569b828e622463a53 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:39:56 +0100 Subject: [PATCH] Update scripts/todays_detections.php Co-authored-by: Nachtzuster --- scripts/todays_detections.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 6cef1423..131fc74a 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -57,9 +57,7 @@ $totalspeciestally = $result6->fetchArray(SQLITE3_ASSOC); if(isset($_GET['comname'])) { - $birdName = $_GET['comname']; - $birdName = str_replace("__", "'", $birdName); - $birdName = str_replace("_", " ", $birdName); + $birdName = htmlspecialchars_decode($_GET['comname'], ENT_QUOTES); // Prepare a SQL statement to retrieve the detection data for the specified bird