pub / serci

Search the web with !keywords
git clone https://src.jayvii.de/pub/serci.git
Home | Log | Files | Exports | Refs | README | RSS

commit f68caec1641a801a3952443778364170fb6bf3b3
parent af3957a4ff55717be3a5ae7a8e2c652ccb30110a
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 22 Apr 2025 18:55:53 +0200

fix: do not sanitize search query

previously, this broke special characters in search
strings such as quotations

Diffstat:
Mindex.php | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/index.php b/index.php @@ -11,7 +11,6 @@ /* Fetch and sanitize search query via GET request * Allow both "query" and "q" */ - $_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING); if (!is_null($_GET["query"])) { $query = rawurldecode($_GET["query"]); } else if (!is_null($_GET["q"])) {