Changeset 0a501c0 in git


Ignore:
Timestamp:
2008-02-18T12:25:11Z (11 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
fe7a039
Parents:
06ebc19
Message:

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

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@525 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coverager/config.php.example

    r79864a1 r0a501c0  
    2222{
    2323    $sep = DIRECTORY_SEPARATOR;
    24     $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o);
     24    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o);
    2525    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
    2626    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
Note: See TracChangeset for help on using the changeset viewer.