From 958e8905381a010fd1467ca08d7b60d1fbd9ef85 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 14 Oct 2023 20:16:55 +0100 Subject: [PATCH] Update search facility. --- cgi-bin/searchapi.cgi | 3 +++ html/search.shtml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cgi-bin/searchapi.cgi b/cgi-bin/searchapi.cgi index 19e9436..4767e93 100755 --- a/cgi-bin/searchapi.cgi +++ b/cgi-bin/searchapi.cgi @@ -85,6 +85,9 @@ else [[ "${ITEM/$STORAGE_PREFIX}" =~ $REGEX ]] && continue 2 done <<<"${IGNORE_REGEXES[@]}" + # Don't list the path searched for. + [[ "${ITEM/$STORAGE_PREFIX}" == "$QS_p" ]] && continue + # List the item. printf "%s\\n" "${ITEM/$STORAGE_PREFIX}" diff --git a/html/search.shtml b/html/search.shtml index 6ba52b8..a2ae1c4 100644 --- a/html/search.shtml +++ b/html/search.shtml @@ -57,7 +57,7 @@
- + "> " autocomplete="on" required>