From 0d98d7839d1c3da75b95ef29ce12ef54a2a20094 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 16 May 2024 17:22:49 -0400 Subject: added greppr support also btw im not dead --- api/v1/ac.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'api/v1/ac.php') diff --git a/api/v1/ac.php b/api/v1/ac.php index 9d9f534..236dc7b 100644 --- a/api/v1/ac.php +++ b/api/v1/ac.php @@ -100,7 +100,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -135,7 +135,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -154,7 +154,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -167,7 +167,7 @@ class autocomplete{ $_GET["s"], $json[1] // ensure it contains valid key 0 ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; } @@ -221,7 +221,7 @@ class autocomplete{ echo json_encode( ["error" => $error], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); die(); } @@ -233,7 +233,7 @@ class autocomplete{ $_GET["s"], [] ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); die(); } -- cgit v1.2.3