aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail>2010-04-30 15:32:22 +0200
committerRobin Appelman <icewind1991@gmail>2010-04-30 15:32:22 +0200
commit4a23a0e23db35a440216ad1b7212d2844ecf07a6 (patch)
treea48c1c43e004523c7ec7d5e33f475d744e3f24a2 /inc
parent1eefc822ab7d0fc522ed7fa0c702cbd7a2f536e3 (diff)
downloadnextcloud-server-4a23a0e23db35a440216ad1b7212d2844ecf07a6.tar.gz
nextcloud-server-4a23a0e23db35a440216ad1b7212d2844ecf07a6.zip
fix bug on windows hosts where serverroor uses \ in the path and documentroot uses /
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}!=='/'){