Ignore:
Timestamp:
2008-02-18T13:25:11+01:00 (7 years ago)
Author:
moo
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/config.php.example

    r172 r525  
    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.