diff options
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/lib_base.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php index 52b9aeedd4a..4b5fb06a498 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -33,6 +33,7 @@ session_start(); // calculate the documentroot $SERVERROOT=substr(__FILE__,0,-17); $DOCUMENTROOT=$_SERVER['DOCUMENT_ROOT']; +$SERVERROOT=str_replace("\\",'/',$SERVERROOT); $count=strlen($DOCUMENTROOT); $WEBROOT=substr($SERVERROOT,$count); if($WEBROOT{0}!=='/'){ |