diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-09 14:37:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-09 14:38:05 +0200 |
commit | 76de92477f42a9c52ce5f55fc8e91e19d4b3513d (patch) | |
tree | cbb1c63880673313f5af473d32d10d3d6d2b884d /lib/base.php | |
parent | bdd12df4a2907060f599f999077f0d8bcb3ed636 (diff) | |
download | nextcloud-server-76de92477f42a9c52ce5f55fc8e91e19d4b3513d.tar.gz nextcloud-server-76de92477f42a9c52ce5f55fc8e91e19d4b3513d.zip |
fix infinite redirect during setup for windows hosts
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |