pub / serci

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

commit 69b1d6f0e29372238197613b0c93055e105adcd4
parent 1f4d57d3008087753dcb9fee998a891a28064dda
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat,  6 Jul 2024 15:17:45 +0200

fix: evaluate bang-search without type-juggling

Diffstat:
Mindex.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.php b/index.php @@ -28,7 +28,7 @@ if (strlen($query) > 0) { /* Based on given bang, choose a search engine */ $search = null; foreach (array_keys($searches) as $key) { - if (array_search($bang, $searches[$key]["bangs"]) != "") { + if (array_search($bang, $searches[$key]["bangs"]) !== false) { /* If bang has been found, assign search engine and end the loop */ $search = $key; break;