diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 21:22:26 +0400 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 21:22:26 +0400 |
commit | c5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594 (patch) | |
tree | 99f5a68da94b5c9de2e874f66c1dd521b18f2eca /index.php | |
parent | 5ccdea8e5bc80201ed8abab5b3a38e20b8b992cd (diff) |
fix infinite redirect error that happend in rare cases
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
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{ |