diff options
author | Robin Appelman <icewind1991@gmail> | 2010-04-30 15:32:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail> | 2010-04-30 15:32:22 +0200 |
commit | 4a23a0e23db35a440216ad1b7212d2844ecf07a6 (patch) | |
tree | a48c1c43e004523c7ec7d5e33f475d744e3f24a2 /inc | |
parent | 1eefc822ab7d0fc522ed7fa0c702cbd7a2f536e3 (diff) | |
download | nextcloud-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-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}!=='/'){ |