summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-16 19:22:26 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-16 19:22:26 +0200
commitc5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594 (patch)
tree99f5a68da94b5c9de2e874f66c1dd521b18f2eca /index.php
parent5ccdea8e5bc80201ed8abab5b3a38e20b8b992cd (diff)
downloadnextcloud-server-c5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594.tar.gz
nextcloud-server-c5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594.zip
fix infinite redirect error that happend in rare cases
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 105a04ad76e..b1172382ec6 100644
--- a/index.php
+++ b/index.php
@@ -36,12 +36,12 @@ if(count($errors)>0){
exit();
}
else{
- header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
+ header( "Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
exit();
}
}else{
if( OC_USER::login( $_POST["user"], $_POST["password"] )){
- header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
+ header( "Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
exit();
}
else{