svn: /pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/ Router.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Tue, 13 Jul 2010 15:29:30 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301237

Log:
Don't set package version if it is an empty string. Fixes unregistered view exception browsing latest release.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php

Modified: pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php	2010-07-13 13:17:08 UTC (rev 301236)
+++ pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php	2010-07-13 15:29:30 UTC (rev 301237)
@@ -84,14 +84,13 @@
             $options['package'] = $matches['package'];

             // Release selected
-            if (isset($matches['version'])) {
+            if (isset($matches['version']) && $matches['version'] != '') {
                 $options['packageVersion'] = $matches['version'];
             }

             // File browser selected
             if (isset($matches['file']) && $matches['file'] != '') {
                 $options['file'] = $matches['file'];
-//                'PEAR2_HTTP_Request-0.2.0/php/PEAR2/HTTP/Request/Headers.php';
             }

         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.