From e55b76c94de7f7555edbef30102287fc13da6c1f Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 18 Feb 2008 11:42:01 +0000 Subject: [PATCH] fix possible wrong separator in docuemnt root git-svn-id: svn://svn.lighttpd.net/xcache/trunk@523 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- admin/config.php.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/config.php.example b/admin/config.php.example index 8598703..3b8b617 100644 --- a/admin/config.php.example +++ b/admin/config.php.example @@ -19,7 +19,7 @@ $free_graph_width = 120; 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 == '/') {