fix infinite redirect error that happend in rare cases
This commit is contained in:
parent
5ccdea8e5b
commit
c5f9c5b8a3
1 changed files with 2 additions and 2 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue