From bce26361f310f70b4ac6f36a6d55638f4cb1581f Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Tue, 14 Jun 2005 16:25:20 +0000 Subject: [PATCH] Trim spaces from the begining and end of the search string so we don't miss some 'like' matches. --- include/util.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/util.php b/include/util.php index a26231e..6eabed0 100644 --- a/include/util.php +++ b/include/util.php @@ -587,6 +587,10 @@ function process_app_version_changes($isVersion) function perform_search_and_output_results($search_words) { + /* trim off leading and trailing spaces in $search_words */ + /* to improve matching accuracy */ + $search_words = trim($search_words); + echo "
Like matches
"; $hResult = searchForApplication($search_words); outputSearchTableForhResult($search_words, $hResult);