Index: trunk/kernel/frontaction.php =================================================================== diff -u -N -r979 -r1019 --- trunk/kernel/frontaction.php (.../frontaction.php) (revision 979) +++ trunk/kernel/frontaction.php (.../frontaction.php) (revision 1019) @@ -787,7 +787,7 @@ } break; case "m_simple_search": - $keywords = $_POST["keywords"]; + $keywords = trim($_POST["keywords"]); $type = $objItemTypes->GetTypeByName("Category"); $objSearch = new clsSearchResults("Category","clsCategory"); $length = $objConfig->Get('Search_MinKeyword_Length'); @@ -951,7 +951,7 @@ $SearchResultIdList = $objSearch->Result_IdList(); if(count($SearchResultIdList)>0) { - $objSearch->PerformSearch(1,$SortOrder,TRUE,$SearchResultIdList); + $objSearch->PerformSearch(1,$SortOrder, TRUE,$SearchResultIdList); //$objSearch->SetRelevence($type->Get("ItemType"), "CategoryId"); } $SearchPerformed = TRUE;