commit f19f8c5727d182f6cf639fabfb8e66d2f2e07eac
parent 1014f6658f604700b2937285697f4d8dcd04bf05
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Mon, 8 Jul 2024 21:01:36 +0200
fix: handle special characters correctly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.php b/index.php
@@ -8,7 +8,7 @@
include("config/config.php");
/* Fetch and sanitize search query via GET request */
-$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
+$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
if (!is_null($_GET["query"])) {
$query = rawurldecode($_GET["query"]);
} else if (!is_null($_GET["q"])) {