Changeset e55b76c in git


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

fix possible wrong separator in docuemnt root

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/config.php.example

    r4f92e56 re55b76c  
    2020{
    2121    $sep = DIRECTORY_SEPARATOR;
    22     $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o);
     22    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o);
    2323    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
    2424    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
Note: See TracChangeset for help on using the changeset viewer.