fix infinite redirect during setup for windows hosts
This commit is contained in:
parent
bdd12df4a2
commit
76de92477f
|
@ -124,7 +124,7 @@ class OC{
|
||||||
// calculate the documentroot
|
// calculate the documentroot
|
||||||
$DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']);
|
$DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']);
|
||||||
OC::$SERVERROOT=str_replace("\\",'/',substr(__FILE__,0,-13));
|
OC::$SERVERROOT=str_replace("\\",'/',substr(__FILE__,0,-13));
|
||||||
OC::$SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen(OC::$SERVERROOT));
|
OC::$SUBURI= str_replace("\\","/",substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen(OC::$SERVERROOT)));
|
||||||
$scriptName=$_SERVER["SCRIPT_NAME"];
|
$scriptName=$_SERVER["SCRIPT_NAME"];
|
||||||
if(substr($scriptName,-1)=='/'){
|
if(substr($scriptName,-1)=='/'){
|
||||||
$scriptName.='index.php';
|
$scriptName.='index.php';
|
||||||
|
|
Loading…
Reference in New Issue