Update search facility.

This commit is contained in:
Darren 'Tadgy' Austin 2023-10-14 20:16:55 +01:00
commit 958e890538
2 changed files with 4 additions and 1 deletions

View file

@ -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}"

View file

@ -57,7 +57,7 @@
<tr>
<td class="search" align="right" valign="center">
<form action="/search">
<input type="hidden" name="p" value="$X_p">
<input type="hidden" name="p" value="<?php print ($_GET["p"]) ?>">
<input class="searchinput" title="Search" alt="Search Box" type="text" name="q" value="<?php print ($_GET["q"]) ?>" autocomplete="on" required>
</form>
</td>