aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rwxr-xr-xinc/lib_base.php1
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}!=='/'){