From 4ed0a0f072250b7e1f4e608699b0421bbbf1def6 Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Thu, 24 Apr 2008 09:57:04 +0000 Subject: [PATCH] Merged in from DEV trunk... --- lib/util/ktutil.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index bb372ef..c716cf8 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -867,7 +867,7 @@ class KTUtil { $sPath = str_replace('\\', '/', $sPath); $sReal = str_replace('\\', '/', realpath($sPath)); - if(substr($sPath, -1, 1) == '/'){ + if(substr($sPath, -1, 1) == '/' && substr($sReal, -1, 1) != '/'){ $sReal .= '/'; } -- libgit2 0.21.4