svn: /web/php/trunk/include/ manual-lookup.inc
| From: | Philip Olson | Date: | Wed, 11 Aug 2010 14:04:28 +0000 |
| Subject: | svn: /web/php/trunk/include/ manual-lookup.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8696@lists.php.net to get a copy of this message | ||
philip Wed, 11 Aug 2010 14:04:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=302105
Log:
Fixed sqlite based search, patch by vrana and salathe, closes PHP Bug #43352
Bug: http://bugs.php.net/43352 (Assigned) Search ignores _,
even if _ would produce an exact match
Changed paths:
U web/php/trunk/include/manual-lookup.inc
Modified: web/php/trunk/include/manual-lookup.inc
===================================================================
--- web/php/trunk/include/manual-lookup.inc 2010-08-11 09:38:41 UTC (rev 302104)
+++ web/php/trunk/include/manual-lookup.inc 2010-08-11 14:04:28 UTC (rev 302105)
@@ -139,7 +139,7 @@
$words = "'" . implode("','", $keywords) .
"'";
$SQL = "SELECT name, prio FROM fs WHERE lang = 'LANG_HERE'
- AND keyword IN (" . $words . ") ORDER BY prio LIMIT 1";
+ AND keyword IN (" . $words . ") ORDER BY keyword = '$keyword'
DESC, prio LIMIT 1";
}
// Check for all the languages