fix infinite redirect error that happend in rare cases

This commit is contained in:
Robin Appelman 2011-04-16 19:22:26 +02:00
parent 5ccdea8e5b
commit c5f9c5b8a3

View file

@ -36,12 +36,12 @@ if(count($errors)>0){
exit(); exit();
} }
else{ else{
header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" )); header( "Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
exit(); exit();
} }
}else{ }else{
if( OC_USER::login( $_POST["user"], $_POST["password"] )){ 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(); exit();
} }
else{ else{