]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix when owncloud is installed in the root of a server
authorRobin <robin@Amaya.(none)>
Fri, 21 May 2010 17:50:18 +0000 (19:50 +0200)
committerRobin <robin@Amaya.(none)>
Fri, 21 May 2010 17:50:18 +0000 (19:50 +0200)
inc/lib_base.php

index 303809bdd6b57e114b7a1ad1696bfb987637e776..e6c02722b49d21d5025fa0b77a4a66f751c2ecac 100755 (executable)
@@ -37,9 +37,10 @@ $DOCUMENTROOT=$_SERVER['DOCUMENT_ROOT'];
 $SERVERROOT=str_replace("\\",'/',$SERVERROOT);
 $count=strlen($DOCUMENTROOT);
 $WEBROOT=substr($SERVERROOT,$count);
-if($WEBROOT{0}!=='/'){
+if($WEBROOT{0}!=='/' and $WEBROOT!=''){
        $WEBROOT='/'.$WEBROOT;
 }
+// $WEBROOT='http://localhost'.$WEBROOT;
 
 // set the right include path
 // set_include_path(get_include_path().PATH_SEPARATOR.$SERVERROOT.PATH_SEPARATOR.$SERVERROOT.'/inc'.PATH_SEPARATOR.$SERVERROOT.'/config');