Update of /cvsroot/fink/web/pdb In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv20500
Modified Files: package.php Log Message: fix query quoting Index: package.php =================================================================== RCS file: /cvsroot/fink/web/pdb/package.php,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- package.php 6 Dec 2007 17:21:15 -0000 1.57 +++ package.php 6 Dec 2007 17:38:35 -0000 1.58 @@ -44,9 +44,9 @@ if ($epoch != null) $fullQuery->addQuery("epoch:$epoch", true); if ($version != null) - $fullQuery->addQuery("version_e:$version", true); + $fullQuery->addQuery("version_e:\"$version\"", true); if ($revision != null) - $fullQuery->addQuery("revision_e:$revision", true); + $fullQuery->addQuery("revision_e:\"$revision\"", true); } if ($doc_id) { @@ -61,7 +61,7 @@ if ($release == 'unstable' || $release == 'stable') { $fullQuery->addQuery("rel_type:$release", true); } else { - $fullQuery->addQuery("rel_version:$release", true); + $fullQuery->addQuery("rel_version:\"$release\"", true); } } if ($architecture) { @@ -280,8 +280,8 @@ } if ($pobj['parentname']) { $parentq = new SolrQuery(); - $parentq->addQuery('rel_id:' . $pobj['rel_id'], true); - $parentq->addQuery('pkg_id:' . $pobj['parentname'], true); + $parentq->addQuery('rel_id:"' . $pobj['rel_id'] . '"', true); + $parentq->addQuery('pkg_id:"' . $pobj['parentname'] . '"', true); $parent = $parentq->fetch(); if ($parent != null && count($parent) != 0) { $parentobj = array_shift($parent); @@ -304,8 +304,8 @@ } $sq = new SolrQuery(); - $sq->addQuery('rel_id:' . $pobj['rel_id'], true); - $sq->addQuery('parentname_e:\"' . $pobj['pkg_id'] . '"', true); + $sq->addQuery('rel_id:"' . $pobj['rel_id'] . '"', true); + $sq->addQuery('parentname_e:"' . $pobj['pkg_id'] . '"', true); $splitoffs = $sq->fetch(); if ($splitoffs != null && count($splitoffs) != 0) { ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs