[35221] trunk/www/ports.php

eridius at macports.org eridius at macports.org
Thu Mar 20 22:29:52 PDT 2008


Revision: 35221
          http://trac.macosforge.org/projects/macports/changeset/35221
Author:   eridius at macports.org
Date:     2008-03-20 22:29:51 -0700 (Thu, 20 Mar 2008)

Log Message:
-----------
Return zero ports if the user changes the by query parameter to something unrecognizable

Modified Paths:
--------------
    trunk/www/ports.php

Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php	2008-03-21 05:22:47 UTC (rev 35220)
+++ trunk/www/ports.php	2008-03-21 05:29:51 UTC (rev 35221)
@@ -110,6 +110,9 @@
         case 'all':
             $criteria = '';
             break;
+        default:
+            $criteria = '0';
+            break;
         }
         $where = ($criteria == '' ? '' : "WHERE $criteria");
         $query = "SELECT DISTINCT $fields FROM $tables $where ORDER BY name";

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080320/47f1708d/attachment.html 


More information about the macports-changes mailing list