From: Robin Appelman Date: Sat, 9 Jun 2012 12:37:52 +0000 (+0200) Subject: fix infinite redirect during setup for windows hosts X-Git-Tag: v4.5.0beta1~74^2~422^2~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=76de92477f42a9c52ce5f55fc8e91e19d4b3513d;p=nextcloud-server.git fix infinite redirect during setup for windows hosts --- diff --git a/lib/base.php b/lib/base.php index d86a39966ee..f85710ddfcf 100644 --- a/lib/base.php +++ b/lib/base.php @@ -124,7 +124,7 @@ class OC{ // calculate the documentroot $DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']); 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"]; if(substr($scriptName,-1)=='/'){ $scriptName.='index.php';