From 0ee57cc5661f3ea40e39c0e24b40b22e0fc68f6a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 27 Aug 2005 21:33:25 +0000 Subject: [PATCH] Don't add a trailing slash in viewsvn::paths::out() - method 2 --- includes/paths.php | 2 +- includes/repository.php | 4 ++-- index.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/paths.php b/includes/paths.php index 877de03..dc91cb9 100644 --- a/includes/paths.php +++ b/includes/paths.php @@ -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] : ''); } } diff --git a/includes/repository.php b/includes/repository.php index 7d93339..1851892 100644 --- a/includes/repository.php +++ b/includes/repository.php @@ -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 . '/'; } } diff --git a/index.php b/index.php index 487d603..54970fb 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ echo "\n"; foreach ($viewsvn->repos->fetch_list() AS $repos) { - echo '
  • ' . $repos . '
  • '; + echo '
  • ' . $repos . '
  • '; echo "\n"; } -- 2.22.5