From: Robin Appelman Date: Sat, 16 Apr 2011 17:22:26 +0000 (+0200) Subject: fix infinite redirect error that happend in rare cases X-Git-Tag: v3.0~267^2~558^2~137^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5f9c5b8a3bf6b1e28644af6f8ae408dbdb16594;p=nextcloud-server.git fix infinite redirect error that happend in rare cases --- 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{