From 0a501c0fd44a5ed275149bdc8c569dc0f6a4af68 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 18 Feb 2008 12:25:11 +0000 Subject: [PATCH] [523] cont.: fix possible wrong separator in docuemnt root git-svn-id: svn://svn.lighttpd.net/xcache/trunk@525 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- coverager/config.php.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverager/config.php.example b/coverager/config.php.example index cb2d4aa..4174b19 100644 --- a/coverager/config.php.example +++ b/coverager/config.php.example @@ -21,7 +21,7 @@ $usecache = false; function ob_filter_path_nicer($o) { $sep = DIRECTORY_SEPARATOR; - $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}$sep", $o); + $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o); $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); if ($sep == '/') {