Changeset 5cef983 in git


Ignore:
Timestamp:
2012-06-25T08:55:03Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
70d0d24
Parents:
bb6bf2b
Message:

improve path nicer to handle win32 DOCUMENT_ROOT

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/common.php

    r8f609d4 r5cef983  
    100100    $sep = DIRECTORY_SEPARATOR;
    101101    $docRoot = $_SERVER['DOCUMENT_ROOT'];
     102    if ($sep != '/') {
     103        $docRoot = str_replace('/', $sep, $docRoot);
     104    }
    102105    $list_html = str_replace($docRoot,  "{DOCROOT}" . (substr($docRoot, -1) == $sep ? $sep : ""), $list_html);
    103106    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
Note: See TracChangeset for help on using the changeset viewer.