Don't add a trailing slash in viewsvn::paths::out() - method 2
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 27 Aug 2005 21:33:25 +0000 (21:33 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 27 Aug 2005 21:33:25 +0000 (21:33 +0000)
includes/paths.php
includes/repository.php
index.php

index 877de03669b34a8f8f9f92fdf9b70222a4643484..dc91cb9012ff1bb3441fbec828e9509943f7b241 100644 (file)
@@ -74,7 +74,7 @@ class Paths
                // advanced path system
                else if ($this->type == 2)
                {
-                       return $url[0] . ($addpath{0} != '/' ? '/' : '') . $viewsvn->fetch_sourcepath($addpath) . ($url[1] ? '?' . $url[1] : '');
+                       return $url[0] . ($addpath{0} != '/' ? '/' : '') . $addpath . ($url[1] ? '?' . $url[1] : '');
                }
        }
        
index 7d93339ab41734ed6b129dd3b898fbadb1777901..185189293e2d5809af2f5fd2330ed7c0abe0f68c 100644 (file)
@@ -117,11 +117,11 @@ class Repository
                
                if ($this->container)
                {
-                       return 'file://' . $this->path . $repository;
+                       return 'file://' . $this->path . $repository . '/';
                }
                else
                {
-                       return 'file://' . $this->path;
+                       return 'file://' . $this->path . '/';
                }
        }
        
index 487d603335f353c17acab53b2a0d47d6c51966d0..54970fbb1ff3e889ec31806dcfc8cb47a137b592 100644 (file)
--- a/index.php
+++ b/index.php
@@ -17,7 +17,7 @@ echo "\n";
 
 foreach ($viewsvn->repos->fetch_list() AS $repos)
 {
-       echo '<li><a href="' . $viewsvn->paths->out('browse.php', $repos) . '">' . $repos . '</a></li>';
+       echo '<li><a href="' . $viewsvn->paths->out('browse.php', $repos . '/') . '">' . $repos . '</a></li>';
        echo "\n";
 }