[Piwik-trac] [Piwik] #172: JS Code has extra slash

Piwik trac at piwik.org
Sat Apr 5 16:22:52 CEST 2008


#172: JS Code has extra slash
-------------------------+--------------------------------------------------
  Reporter:  loki_racer  |       Owner:     
      Type:  Bug         |      Status:  new
  Priority:  low         |   Milestone:     
 Component:  Core        |     Version:     
Resolution:              |    Keywords:     
-------------------------+--------------------------------------------------
Comment (by loki_racer):

 /modules/Url.php line 79 through 89 should be

 {{{
         static public function getCurrentUrlWithoutFileName()
         {

                 $host = self::getCurrentHost();
                 $queryString = self::getCurrentScriptName() ;

                 //add a fake letter case /test/test2/ returns /test which
 is not expected
                 $urlDir = dirname ($queryString . 'x');
                 return $host.$urlDir;

         }
 }}}

-- 
Ticket URL: <http://dev.piwik.org/trac/ticket/172#comment:1>
Piwik <http://piwik.org>
Piwik, open source web analytics software


More information about the Piwik-trac mailing list