From c5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 16 Apr 2011 19:22:26 +0200 Subject: [PATCH] fix infinite redirect error that happend in rare cases --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 105a04ad76..b1172382ec 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{