1
0
Fork 0

[523] cont.: fix possible wrong separator in docuemnt root

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@525 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent 06ebc1952c
commit 0a501c0fd4

@ -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 == '/') {

Loading…
Cancel
Save