summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorsimo <simo>2005-08-12 04:22:41 +0000
committersimo <simo>2005-08-12 04:22:41 +0000
commitf99ef319fdd6df152d7791f8e451d8503611e583 (patch)
treef6ff53153f916d7e3755a6d3cd2c5e97d8eef2a1 /web
parente728d275600f019af225dd96ad9203d651490a47 (diff)
downloadaurweb-f99ef319fdd6df152d7791f8e451d8503611e583.tar.xz
slap bug #3068, fix pkg searching in pkgnames
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 1a6b6b4..ff7229f 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)."%') ";
}
}