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
1 changed files with 2 additions and 2 deletions

View File

@ -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{