From f99ef319fdd6df152d7791f8e451d8503611e583 Mon Sep 17 00:00:00 2001 From: simo Date: Fri, 12 Aug 2005 04:22:41 +0000 Subject: slap bug #3068, fix pkg searching in pkgnames --- web/lib/pkgfuncs.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 1a6b6b44..ff7229ff 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -759,11 +759,11 @@ function pkg_search_page($SID="") { } if ($K) { if (!$has_where) { - $q.= "WHERE (Name LIKE '".mysql_escape_string($K)."%' OR "; + $q.= "WHERE (Name LIKE '%".mysql_escape_string($K)."%' OR "; $q.= "Description LIKE '%".mysql_escape_string($K)."%') "; $has_where = 1; } else { - $q.= "AND (Name LIKE '".mysql_escape_string($K)."%' OR "; + $q.= "AND (Name LIKE '%".mysql_escape_string($K)."%' OR "; $q.= "Description LIKE '%".mysql_escape_string($K)."%') "; } } -- cgit v1.2.3-24-g4f1b