From 086f060b9ebb16d0f28b50e472d849ba5332483a Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 21 May 2010 19:50:18 +0200 Subject: [PATCH] fix when owncloud is installed in the root of a server --- inc/lib_base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/lib_base.php b/inc/lib_base.php index 303809bdd6b..e6c02722b49 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -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'); -- 2.39.5